public override Style VisitUnknownSymbolSyntax(JsonUnknownSymbolSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[unknownSymbolStyleIndex];
 public override Style VisitRootLevelValueDelimiterSyntax(JsonRootLevelValueDelimiterSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[unknownSymbolStyleIndex];
 public override Style VisitStringLiteralSyntax(JsonStringLiteralSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[stringStyleIndex];
 public override Style VisitIntegerLiteralSyntax(JsonIntegerLiteralSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[booleanIntegerStyleIndex];
 public override Style VisitCommentSyntax(JsonCommentSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[commentStyleIndex];
 public override Style DefaultVisit(IJsonSymbol node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.DefaultStyle;
 public override Style VisitUnterminatedMultiLineCommentSyntax(JsonUnterminatedMultiLineCommentSyntax node, SyntaxEditor <TSyntaxTree, IJsonSymbol, JsonErrorInfo> syntaxEditor)
 => syntaxEditor.Styles[commentStyleIndex];
Example #8
0
 public override Style GetStyle(SyntaxEditor <RootJsonSyntax, IJsonSymbol, JsonErrorInfo> syntaxEditor, IJsonSymbol terminalSymbol)
 => JsonStyleSelector <RootJsonSyntax> .Instance.Visit(terminalSymbol, syntaxEditor);