1 instantiation of JsonTree
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Json\JsonParser.cs (1)
141return new JsonTree(_lexer.Text, root, diagnostic == null
22 references to JsonTree
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (7)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (7)
58var tree = TryParseTree(stringText, options, conversionFailureOk: false); 87private protected static void ValidateDiagnostics(string expectedDiagnostics, JsonTree tree) 159private protected (SyntaxToken, JsonTree?, VirtualCharSequence) JustParseTree( 173var tree = JsonParser.TryParse(allChars, options); 177private JsonTree? TryParseTree( 218private protected static string TreeToText(JsonTree tree) 326private protected static void CheckInvariants(JsonTree tree, VirtualCharSequence allChars)
Microsoft.CodeAnalysis.Features (15)
EmbeddedLanguages\Json\JsonParser.cs (3)
26/// cref="JsonTree"/> out of it. Parsing will always succeed (except in the case of a 105public static JsonTree? TryParse(VirtualCharSequence text, JsonOptions options) 120private JsonTree ParseTree(JsonOptions options)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
87var strictTree = JsonParser.TryParse(chars, JsonOptions.Strict);
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
72var tree = detector.TryParseString(token, context.SemanticModel, includeProbableStrings: false, cancellationToken);
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (3)
51var tree = detector.TryParseString(token, semanticModel, includeProbableStrings: true, cancellationToken); 58private static BraceMatchingResult? GetMatchingBraces(JsonTree tree, int position) 70private static BraceMatchingResult? FindBraceHighlights(JsonTree tree, VirtualChar ch)
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (1)
54var tree = detector.TryParseString(token, semanticModel, includeProbableStrings: true, context.CancellationToken);
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (6)
25: AbstractLanguageDetector<JsonOptions, JsonTree, JsonLanguageDetector, JsonLanguageDetector.JsonInfo>( 59protected override JsonTree? TryParse(VirtualCharSequence chars, JsonOptions options) 69public JsonTree? TryParseString(SyntaxToken token, SemanticModel semanticModel, bool includeProbableStrings, CancellationToken cancellationToken) 71var result = TryParseString(token, semanticModel, cancellationToken); 75if (includeProbableStrings && IsProbablyJson(token, out var tree)) 94public bool IsProbablyJson(SyntaxToken token, [NotNullWhen(true)] out JsonTree? tree)