1 write to NodesAndTokens
Microsoft.CodeAnalysis.Workspaces (1)
EmbeddedSeparatedSyntaxNodeList.cs (1)
28
NodesAndTokens
= nodesAndTokens;
28 references to NodesAndTokens
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (5)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (1)
289
foreach (var child in sequence.
NodesAndTokens
)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (4)
232
return AlternationToElement(alternationNode, alternationNode.SequenceList.
NodesAndTokens
.Length);
247
return NodeToElement(alternationNode.SequenceList.
NodesAndTokens
[0].Node);
251
element.Add(TokenToElement(alternationNode.SequenceList.
NodesAndTokens
[end - 2].Token));
252
element.Add(NodeToElement(alternationNode.SequenceList.
NodesAndTokens
[end - 1].Node));
Microsoft.CodeAnalysis.Features (17)
EmbeddedLanguages\Json\JsonNodes.cs (3)
107
internal override int ChildCount => 2 + Sequence.
NodesAndTokens
.Length;
114
if (index == Sequence.
NodesAndTokens
.Length + 1)
117
return Sequence.
NodesAndTokens
[index - 1];
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (3)
117
if (!allowTrailingComma && node.Sequence.
NodesAndTokens
.Length != 0 && node.Sequence.
NodesAndTokens
.Length % 2 == 0)
118
return new EmbeddedDiagnostic(FeaturesResources.Trailing_comma_not_allowed, node.Sequence.
NodesAndTokens
[^1].Token.GetSpan());
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexClassifier.cs (2)
319
for (var i = 1; i < node.SequenceList.
NodesAndTokens
.Length; i += 2)
320
AddClassification(node.SequenceList.
NodesAndTokens
[i].Token, ClassificationTypeNames.RegexAlternation);
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (5)
633
Debug.Assert(sequenceList.
NodesAndTokens
.Length > 0);
634
for (var i = 1; i < sequenceList.
NodesAndTokens
.Length; i += 2)
635
Debug.Assert(sequenceList.
NodesAndTokens
[i].Kind == RegexKind.BarToken);
642
internal override int ChildCount => SequenceList.
NodesAndTokens
.Length;
645
=> SequenceList.
NodesAndTokens
[index];
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (4)
412
internal override int ChildCount => TypeArguments.
NodesAndTokens
.Length + 2;
435
return TypeArguments.
NodesAndTokens
[index - 1];
486
internal override int ChildCount => 2 + Parameters.
NodesAndTokens
.Length;
506
return Parameters.
NodesAndTokens
[index - 1];
Microsoft.CodeAnalysis.Workspaces (6)
EmbeddedSeparatedSyntaxNodeList.cs (6)
30
var allLength =
NodesAndTokens
.Length;
40
for (var i = 0; i <
NodesAndTokens
.Length; i++)
45
Debug.Assert(
NodesAndTokens
[i].IsNode);
46
Debug.Assert(
NodesAndTokens
[i].Node is EmbeddedSyntaxNode<TSyntaxKind, TSyntaxNode>);
51
Debug.Assert(!
NodesAndTokens
[i].IsNode);
67
var nodeOrToken =
NodesAndTokens
[index * 2];