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