8 types derived from JsonValueNode
Microsoft.CodeAnalysis.Features (8)
EmbeddedLanguages\Json\JsonNodes.cs (8)
63internal sealed class JsonTextNode : JsonValueNode 87internal sealed class JsonObjectNode : JsonValueNode 124internal sealed class JsonArrayNode : JsonValueNode 162internal sealed class JsonNegativeLiteralNode : JsonValueNode 189internal sealed class JsonLiteralNode : JsonValueNode 215internal sealed class JsonCommaValueNode : JsonValueNode 239internal sealed class JsonPropertyNode : JsonValueNode 276internal sealed class JsonConstructorNode : JsonValueNode
32 references to JsonValueNode
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (3)
21using JsonSeparatedList = EmbeddedSeparatedSyntaxNodeList<JsonKind, JsonNode, JsonValueNode>; 278private static XElement CreateSequenceNode(ImmutableArray<JsonValueNode> sequence) 281foreach (var child in sequence)
Microsoft.CodeAnalysis.Features (29)
EmbeddedLanguages\Json\JsonNodes.cs (9)
14using JsonSeparatedList = EmbeddedSeparatedSyntaxNodeList<JsonKind, JsonNode, JsonValueNode>; 18public JsonCompilationUnit(ImmutableArray<JsonValueNode> sequence, JsonToken endOfFileToken) 31public ImmutableArray<JsonValueNode> Sequence { get; } 128ImmutableArray<JsonValueNode> sequence, 142public ImmutableArray<JsonValueNode> Sequence { get; } 241public JsonPropertyNode(JsonToken nameToken, JsonToken colonToken, JsonValueNode value) 256public JsonValueNode Value { get; } 282ImmutableArray<JsonValueNode> sequence, 301public ImmutableArray<JsonValueNode> Sequence { get; }
EmbeddedLanguages\Json\JsonParser.cs (13)
23using JsonSeparatedList = EmbeddedSeparatedSyntaxNodeList<JsonKind, JsonNode, JsonValueNode>; 40/// of <see cref="JsonValueNode"/> values. We just treat almost everything as a 'value'. For 190var child = sequence.Single(); 240foreach (var child in node.Sequence) 255foreach (var child in node.Sequence) 304private ImmutableArray<JsonValueNode> ParseSequence() 318private ImmutableArray<JsonValueNode> ParseSequenceWorker() 320using var _ = ArrayBuilder<JsonValueNode>.GetInstance(out var result); 348var value = ParseValue(); 373private JsonValueNode ParseValue() 436var value = ParseValue(); 452private JsonValueNode ParseLiteralOrPropertyOrConstructor() 460private JsonValueNode ParseLiteralOrTextOrConstructor(JsonToken token)
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (4)
123private static EmbeddedDiagnostic? CheckCommasBetweenSequenceElements(ImmutableArray<JsonValueNode> sequence) 129var child = sequence[i]; 130var nextChild = sequence[i + 1]; 140foreach (var child in node.Sequence)
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (3)
111foreach (var child in node.Sequence) 127ImmutableArray<JsonValueNode> sequence, 133var child = sequence[i];