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