18 references to JsonOptions
Microsoft.CodeAnalysis.Features (18)
EmbeddedLanguages\Json\JsonParser.cs (3)
106
public static JsonTree? TryParse(VirtualCharSequence text,
JsonOptions
options)
121
private JsonTree ParseTree(
JsonOptions
options)
136
var diagnostic3 = options.HasFlag(
JsonOptions
.Strict)
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (3)
25
public static EmbeddedDiagnostic? CheckRootSyntax(JsonCompilationUnit node,
JsonOptions
options)
27
var allowComments = options.HasFlag(
JsonOptions
.Comments);
28
var allowTrailingCommas = options.HasFlag(
JsonOptions
.TrailingCommas);
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
87
var strictTree = JsonParser.TryParse(chars,
JsonOptions
.Strict);
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (11)
25
: AbstractLanguageDetector<
JsonOptions
, JsonTree, JsonLanguageDetector, JsonLanguageDetector.JsonInfo>(
56
protected override
JsonOptions
GetStringSyntaxDefaultOptions()
57
=>
JsonOptions
.Strict;
59
protected override JsonTree? TryParse(VirtualCharSequence chars,
JsonOptions
options)
97
tree = JsonParser.TryParse(chars,
JsonOptions
.Loose);
130
out
JsonOptions
options)
148
options = symbol.ContainingType.Name == nameof(JsonDocument) ?
JsonOptions
.Strict : default;
160
SemanticModel semanticModel, ITypeSymbol exprType, SyntaxNode expr, CancellationToken cancellationToken, out
JsonOptions
options)
170
options =
JsonOptions
.Strict;
189
options |=
JsonOptions
.TrailingCommas;
194
options |=
JsonOptions
.Comments;