16 references to Strict
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (1)
50Test(stringText, JsonOptions.Strict, expected, strictDiagnostics, runSubTreeChecks: true);
EmbeddedLanguages\Json\CSharpJsonParserTests_NstTests.cs (1)
17var (_, tree, allChars) = JustParseTree(stringText, JsonOptions.Strict, conversionFailureOk: false);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetectorTests.cs (5)
117=> Match("lang=json,strict", JsonOptions.Strict); 121=> Match("lang=json , strict", JsonOptions.Strict); 125=> Match("lang=json,strict. Explanation", JsonOptions.Strict); 129=> Match("lang=json,strict,Strict. Explanation", JsonOptions.Strict); 133=> Match("Language=Json,Strict. Explanation", JsonOptions.Strict);
Microsoft.CodeAnalysis.Features (9)
EmbeddedLanguages\Json\JsonOptions.cs (4)
23/// Same as <see cref="Strict"/> except that comments are allowed as well. Corresponds to <c>new JsonDocumentOptions 26Comments = 2 | Strict, 28/// Same as <see cref="Strict"/> except that trailing commas are allowed as well. Corresponds to <c>new 31TrailingCommas = 4 | Strict,
EmbeddedLanguages\Json\JsonParser.cs (1)
135var diagnostic3 = options.HasFlag(JsonOptions.Strict)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
87var strictTree = JsonParser.TryParse(chars, JsonOptions.Strict);
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (3)
57=> JsonOptions.Strict; 148options = symbol.ContainingType.Name == nameof(JsonDocument) ? JsonOptions.Strict : default; 170options = JsonOptions.Strict;