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