Esempio n. 1
0
 public static void AddColorizer(ITextBuffer textBuffer, CachedColorsList cachedColorsList)
 {
     if (textBuffer == null)
     {
         throw new ArgumentNullException(nameof(textBuffer));
     }
     if (cachedColorsList == null)
     {
         throw new ArgumentNullException(nameof(cachedColorsList));
     }
     textBuffer.Properties.GetOrCreateSingletonProperty(typeof(CachedColorsListTagger), () => CachedColorsListTagger.Create(cachedColorsList));
 }
Esempio n. 2
0
 internal static CachedColorsListTagger Create(CachedColorsList cachedColorsList) =>
 new CachedColorsListTagger(cachedColorsList);
Esempio n. 3
0
 CachedColorsListTagger(CachedColorsList cachedColorsList)
 {
     this.cachedColorsList = cachedColorsList;
 }