public PXColoriserSyntaxWalker(PXRoslynColorizerTagger tagger, ParsedDocument parsedDocument, CancellationToken cToken) : base(SyntaxWalkerDepth.Node) { tagger.ThrowOnNull(nameof(tagger)); parsedDocument.ThrowOnNull(nameof(parsedDocument)); _tagger = tagger; _document = parsedDocument; _cancellationToken = cToken; }
public PXColorizerMainTagger(ITextBuffer buffer, PXColorizerTaggerProvider aProvider, bool subscribeToSettingsChanges, bool useCacheChecking) : base(buffer, aProvider, subscribeToSettingsChanges, useCacheChecking) { PXColorizerTaggerBase roslynTagger = new PXRoslynColorizerTagger(buffer, aProvider, subscribeToSettingsChanges: false, useCacheChecking: false); PXColorizerTaggerBase regexTagger = new PXRegexColorizerTagger(buffer, aProvider, subscribeToSettingsChanges: false, useCacheChecking: false); _taggersByType = new Dictionary <TaggerType, PXColorizerTaggerBase>(capacity: 2) { { roslynTagger.TaggerType, roslynTagger }, { regexTagger.TaggerType, regexTagger } }; }