13 references to DescendantTokens
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
70=> this.Root.DescendantTokens(textSpan);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (6)
578var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(0, 16)).ToList(); 590var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(1, 14)).ToList(); 602var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(7, 17)).ToList(); 615var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(8, 15)).ToList(); 664var node = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(6, 3)).First(); 2055var actualTokens = syntaxTree.GetRoot().DescendantTokens(syntaxTree.GetRoot().FullSpan);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
TestSyntaxNodes.vb (3)
1825Dim resultList = identExpr.DescendantTokens(New TextSpan(3, 18)) 1896Dim terminals = tree.DescendantTokens(tree.FullSpan) 1906terminals = tree.DescendantTokens(tree.FullSpan)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CaseCorrection\VisualBasicCaseCorrectionService.vb (1)
42Dim candidates = root.DescendantTokens(span).Where(Function(tk As SyntaxToken) tk.Width > 0 OrElse tk.IsKind(SyntaxKind.EndOfFileToken))
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
107For Each token2 In root.DescendantTokens(span)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
70=> this.Root.DescendantTokens(textSpan);