public AntlrCompletionSource(ITextBuffer textBuffer, AntlrCompletionSourceProvider provider, AntlrBackgroundParser backgroundParser) : base(textBuffer, provider, AntlrConstants.AntlrLanguageGuid) { BackgroundParser = backgroundParser; var shell = Provider.GlobalServiceProvider.GetShell(); var package = shell.LoadPackage <AntlrLanguagePackage>(); _intellisenseOptions = package.IntellisenseOptions; }
public AntlrIntellisenseController(ITextView textView, AntlrIntellisenseControllerProvider provider, AntlrBackgroundParser backgroundParser) : base(textView, provider) { BackgroundParser = backgroundParser; ClassificationTagAggregator = provider.AggregatorFactory.CreateTagAggregator<ClassificationTag>(textView.TextBuffer); var shell = Provider.GlobalServiceProvider.GetShell(); var package = shell.LoadPackage<AntlrLanguagePackage>(); _intellisenseOptions = package.IntellisenseOptions; }
public AntlrIntellisenseController(ITextView textView, AntlrIntellisenseControllerProvider provider, AntlrBackgroundParser backgroundParser) : base(textView, provider) { BackgroundParser = backgroundParser; ClassificationTagAggregator = provider.AggregatorFactory.CreateTagAggregator <ClassificationTag>(textView.TextBuffer); var shell = Provider.GlobalServiceProvider.GetShell(); var package = shell.LoadPackage <AntlrLanguagePackage>(); _intellisenseOptions = package.IntellisenseOptions; }
public AntlrOutliningTagger(ITextBuffer textBuffer, AntlrBackgroundParser backgroundParser, AntlrOutliningTaggerProvider 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.BackgroundParser.ParseComplete += HandleBackgroundParseComplete; this.BackgroundParser.RequestParse(false); }
public AntlrOutliningTagger([NotNull] ITextBuffer textBuffer, [NotNull] AntlrBackgroundParser backgroundParser, [NotNull] AntlrOutliningTaggerProvider 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.BackgroundParser.ParseComplete += HandleBackgroundParseComplete; this.BackgroundParser.RequestParse(false); }
public AntlrEditorNavigationSource(ITextBuffer textBuffer, AntlrBackgroundParser backgroundParser, IEditorNavigationTypeRegistryService editorNavigationTypeRegistryService) { Contract.Requires<ArgumentNullException>(textBuffer != null, "textBuffer"); Contract.Requires<ArgumentNullException>(backgroundParser != null, "backgroundParser"); Contract.Requires<ArgumentNullException>(editorNavigationTypeRegistryService != null, "editorNavigationTypeRegistryService"); this.TextBuffer = textBuffer; this.BackgroundParser = backgroundParser; this.EditorNavigationTypeRegistryService = editorNavigationTypeRegistryService; this._parserRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.ParserRule); this._lexerRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.LexerRule); string assemblyName = typeof(AntlrEditorNavigationSource).Assembly.GetName().Name; this._lexerRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/lexericon.png", assemblyName))); this._parserRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/parsericon.png", assemblyName))); this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete; this.BackgroundParser.RequestParse(false); }
public AntlrEditorNavigationSource([NotNull] ITextBuffer textBuffer, [NotNull] AntlrBackgroundParser backgroundParser, [NotNull] IEditorNavigationTypeRegistryService editorNavigationTypeRegistryService) { Requires.NotNull(textBuffer, nameof(textBuffer)); Requires.NotNull(backgroundParser, nameof(backgroundParser)); Requires.NotNull(editorNavigationTypeRegistryService, nameof(editorNavigationTypeRegistryService)); this.TextBuffer = textBuffer; this.BackgroundParser = backgroundParser; this.EditorNavigationTypeRegistryService = editorNavigationTypeRegistryService; this._parserRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.ParserRule); this._lexerRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.LexerRule); string assemblyName = typeof(AntlrEditorNavigationSource).Assembly.GetName().Name; this._lexerRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/lexericon.png", assemblyName))); this._parserRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/parsericon.png", assemblyName))); this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete; this.BackgroundParser.RequestParse(false); }
public AntlrEditorNavigationSource(ITextBuffer textBuffer, AntlrBackgroundParser backgroundParser, IEditorNavigationTypeRegistryService editorNavigationTypeRegistryService) { Contract.Requires <ArgumentNullException>(textBuffer != null, "textBuffer"); Contract.Requires <ArgumentNullException>(backgroundParser != null, "backgroundParser"); Contract.Requires <ArgumentNullException>(editorNavigationTypeRegistryService != null, "editorNavigationTypeRegistryService"); this.TextBuffer = textBuffer; this.BackgroundParser = backgroundParser; this.EditorNavigationTypeRegistryService = editorNavigationTypeRegistryService; this._parserRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.ParserRule); this._lexerRuleNavigationType = this.EditorNavigationTypeRegistryService.GetEditorNavigationType(AntlrEditorNavigationTypeNames.LexerRule); string assemblyName = typeof(AntlrEditorNavigationSource).Assembly.GetName().Name; this._lexerRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/lexericon.png", assemblyName))); this._parserRuleGlyph = new BitmapImage(new Uri(string.Format("pack://application:,,,/{0};component/Resources/parsericon.png", assemblyName))); this.BackgroundParser.ParseComplete += HandleBackgroundParseComplete; this.BackgroundParser.RequestParse(false); }
public AntlrQuickInfoSource(ITextBuffer textBuffer, AntlrBackgroundParser backgroundParser, ITagAggregator <ClassificationTag> aggregator) { this.Aggregator = aggregator; this.BackgroundParser = backgroundParser; this.TextBuffer = textBuffer; }
public AntlrQuickInfoSource(ITextBuffer textBuffer, AntlrBackgroundParser backgroundParser, ITagAggregator<ClassificationTag> aggregator) { this.Aggregator = aggregator; this.BackgroundParser = backgroundParser; this.TextBuffer = textBuffer; }