Ejemplo n.º 1
0
 internal static CSharpClassifierService GetClassifier(
     IReadOnlyDictionary <string, ClassificationInfo> classifications, IClassificationChangingService analyzingService)
 {
     if (_instance is null)
     {
         _instance = new CSharpClassifierService(classifications, analyzingService);
     }
     return(_instance);
 }
 internal VisualBasicTextBufferClassifier(
     Dictionary <string, ClassificationInfo> classifications,
     IClassificationChangingService classificationChangingService,
     bool isEnable,
     IEditorChangingService editorChangingService,
     ITextDocumentFactoryService textDocumentFactoryService,
     ITextBuffer buffer) : base(isEnable, editorChangingService, textDocumentFactoryService, buffer)
 {
     _service = VisualBasicClassifierService.GetClassifier(classifications, classificationChangingService);
 }
Ejemplo n.º 3
0
 private CSharpClassifierService(
     IReadOnlyDictionary <string, ClassificationInfo> classifications, IClassificationChangingService analyzingService)
 {
     InitializeClassifications(classifications);
     analyzingService.ClassificationChanged += OnClassificationsChanged;
 }