9 references to DescendantNodesAndTokens
AnalyzerRunner (1)
CodeRefactoringRunner.cs (1)
79foreach (var node in root.DescendantNodesAndTokens(descendIntoTrivia: true))
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
1046return this.DescendantNodesAndTokens(descendIntoChildren, descendIntoTrivia).Where(sn => sn.IsToken).Select(sn => sn.AsToken());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxNodeTests.cs (3)
235var nodesAndTokens = statement.DescendantNodesAndTokens().ToList(); 242nodesAndTokens = statement.DescendantNodesAndTokens(descendIntoTrivia: true).ToList(); 3554var children = root.DescendantNodesAndTokens();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxNodeStructureProviderTests.cs (1)
47var previousToken = root.DescendantNodesAndTokens(descendIntoTrivia: true).TakeWhile(nodeOrToken => nodeOrToken != node).LastOrDefault(nodeOrToken => nodeOrToken.IsToken).AsToken();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
244foreach (var nodeOrToken in context.Tree.GetRoot().DescendantNodesAndTokens())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
TestSyntaxNodes.vb (1)
2512Dim children = root.DescendantNodesAndTokens()
Microsoft.CodeAnalysis.Workspaces (1)
Differencing\AbstractSyntaxComparer.cs (1)
146foreach (var descendant in node.DescendantNodesAndTokens(