public static ImmutableArray <ClassifiedText> Classify(SyntaxNode node, TextEditorSettings editorSettings)
        {
            var builder = new SimplifiedClassificationBuilder(editorSettings);

            builder.Visit(node);
            builder.TrimEnd();

            return(builder._parts.ToImmutableArray());
        }
Пример #2
0
 public ImmutableArray <ClassifiedText> ToSimplifiedText(TextEditorSettings editorSettings = null)
 {
     return(SimplifiedClassificationBuilder.Classify(this, editorSettings));
 }
 public SuppressTokenSeparatorGuard(SimplifiedClassificationBuilder parent)
 {
     _parent     = parent;
     _savedValue = parent._suppressTokenSeparator;
     parent._suppressTokenSeparator = true;
 }