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