コード例 #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);