12 references to GetAllNodesAndTokens
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Syntax\SyntaxAnnotationTests.cs (12)
161
var node =
GetAllNodesAndTokens
(tree.GetCompilationUnitRoot()).First(t => t.IsNode).AsNode();
193
var token =
GetAllNodesAndTokens
(tree.GetCompilationUnitRoot()).First(t => t.IsToken).AsToken();
284
var firstNode =
GetAllNodesAndTokens
(tree.GetCompilationUnitRoot()).First(t => t.IsNode).AsNode();
295
var firstNodeInNewTree =
GetAllNodesAndTokens
(newRoot).First(t => t.IsNode).AsNode();
352
var actualNodesOrTokens =
GetAllNodesAndTokens
(oldRoot).OrderBy(t => t.SpanStart).ToList();
432
var sourceTreeNodeOrTokenEnumerator =
GetAllNodesAndTokens
(sourceTreeRoot).GetEnumerator();
433
var destTreeNodeOrTokenEnumerator =
GetAllNodesAndTokens
(destTreeRoot).GetEnumerator();
477
var count =
GetAllNodesAndTokens
(currentRoot).Count;
489
var item =
GetAllNodesAndTokens
(currentRoot)[randomGenerator.Next(count - 1)];
507
var candidatePool =
GetAllNodesAndTokens
(syntaxTree.GetCompilationUnitRoot());
523
var secondItem =
GetAllNodesAndTokens
(newRoot)[randomGenerator.Next(numberOfCandidates - 1)];
580
var allNodesAndTokens =
GetAllNodesAndTokens
(syntaxTree.GetCompilationUnitRoot());