Esempio n. 1
0
        public IClassifier GetClassifier(ITextBuffer textBuffer)
        {
            RClassifier classifier = ServiceManager.GetService <RClassifier>(textBuffer);

            if (classifier == null)
            {
                classifier = new RClassifier(textBuffer, ClassificationRegistryService);
            }

            return(classifier);
        }
Esempio n. 2
0
 public static RClassifier GetRClassifier(ITextBuffer textBuffer) => RClassifier.FromTextBuffer(textBuffer);