public BackgroundParserErrorTagger(ITextBuffer textBuffer, IBackgroundParser backgroundParser)
        {
            Contract.Requires <ArgumentNullException>(textBuffer != null, "textBuffer");
            Contract.Requires <ArgumentNullException>(backgroundParser != null, "backgroundParser");

            this._textBuffer       = textBuffer;
            this._backgroundParser = backgroundParser;
            this._backgroundParser.ParseComplete += HandleBackgroundParserParseComplete;
            this._backgroundParser.RequestParse(false);
        }
Exemple #2
0
        public BackgroundParserErrorTagger([NotNull] ITextBuffer textBuffer, [NotNull] IBackgroundParser backgroundParser)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));
            Requires.NotNull(backgroundParser, nameof(backgroundParser));

            this._textBuffer       = textBuffer;
            this._backgroundParser = backgroundParser;
            this._backgroundParser.ParseComplete += HandleBackgroundParserParseComplete;
            this._backgroundParser.RequestParse(false);
        }
Exemple #3
0
        public OutliningTagger(ITextBuffer textBuffer, IBackgroundParser backgroundParser)
        {
            Contract.Requires <ArgumentNullException>(textBuffer != null, "textBuffer");
            Contract.Requires <ArgumentNullException>(backgroundParser != null, "backgroundParser");

            this.TextBuffer       = textBuffer;
            this.BackgroundParser = backgroundParser;

            _outliningRegions = new List <ITagSpan <IOutliningRegionTag> >();

            BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            BackgroundParser.RequestParse(false);
        }
Exemple #4
0
        public GoEditorNavigationSource([NotNull] ITextBuffer textBuffer, [NotNull] IBackgroundParser backgroundParser, [NotNull] GoEditorNavigationSourceProvider provider)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));
            Requires.NotNull(backgroundParser, nameof(backgroundParser));
            Requires.NotNull(provider, nameof(provider));

            this.TextBuffer       = textBuffer;
            this.BackgroundParser = backgroundParser;
            this._provider        = provider;

            this._navigationTargets = new List <IEditorNavigationTarget>();

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
        public AntlrLanguageElementTagger(ITextBuffer textBuffer, IBackgroundParser backgroundParser, IOutputWindowService outputWindowService)
        {
            this.TextBuffer                      = textBuffer;
            this.BackgroundParser                = backgroundParser;
            this.OutputWindowService             = outputWindowService;
            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;

            this._dirty          = false;
            this._timer          = new System.Timers.Timer(2000);
            this._timer.Elapsed += ParseTimerElapsed;
            this._lastEdit       = DateTimeOffset.MinValue;
            this._timer.Start();

            this.BackgroundParser.RequestParse(false);
        }
        public GoEditorNavigationSource(ITextBuffer textBuffer, IBackgroundParser backgroundParser, GoEditorNavigationSourceProvider provider)
        {
            Contract.Requires <ArgumentNullException>(textBuffer != null, "textBuffer");
            Contract.Requires <ArgumentNullException>(backgroundParser != null, "backgroundParser");
            Contract.Requires <ArgumentNullException>(provider != null, "provider");

            this.TextBuffer       = textBuffer;
            this.BackgroundParser = backgroundParser;
            this._provider        = provider;

            this._navigationTargets = new List <IEditorNavigationTarget>();

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
        public StringTemplateEditorNavigationSource(ITextBuffer textBuffer, IBackgroundParser backgroundParser, StringTemplateEditorNavigationSourceProvider provider)
        {
            Contract.Requires<ArgumentNullException>(textBuffer != null, "textBuffer");
            Contract.Requires<ArgumentNullException>(backgroundParser != null, "backgroundParser");
            Contract.Requires<ArgumentNullException>(provider != null, "provider");

            this.TextBuffer = textBuffer;
            this.BackgroundParser = backgroundParser;
            this._provider = provider;

            this._navigationTargets = new List<IEditorNavigationTarget>();

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }
Exemple #8
0
        public GoOutliningTagger([NotNull] ITextBuffer textBuffer, [NotNull] IBackgroundParser backgroundParser, [NotNull] GoOutliningTaggerProvider provider)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));
            Requires.NotNull(backgroundParser, nameof(backgroundParser));
            Requires.NotNull(provider, nameof(provider));

            this.TextBuffer       = textBuffer;
            this.BackgroundParser = backgroundParser;
            this._provider        = provider;

            this._outliningRegions = new List <ITagSpan <IOutliningRegionTag> >();

            this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete;
            this.BackgroundParser.RequestParse(false);
        }