16 references to DescendantNodesAndTokensAndSelf
AnalyzerRunner (1)
Program.cs (1)
210var tokensAndNodes = root.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true);
Microsoft.CodeAnalysis (3)
Syntax\SyntaxNode.cs (3)
1256return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true) 1265return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true) 1274return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
173Assert.Single(modifiedOringinalRoot.DescendantNodesAndTokensAndSelf().Where(n =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
8799var nodes1 = tree.GetRoot().DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToArray(); 8800var nodes2 = fullParseTree.GetRoot().DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToArray();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxAnnotationTests.cs (1)
666return root.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).Select(n => (SyntaxNodeOrToken)n).ToList();
Syntax\SyntaxNodeTests.cs (4)
270var nodesAndTokens = statement.DescendantNodesAndTokensAndSelf().ToList(); 278nodesAndTokens = statement.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToList(); 307var nodesAndTokens = cu.DescendantNodesAndTokensAndSelf().ToList(); 319var nodesAndTokens = expr.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToList();
Microsoft.CodeAnalysis.Features (1)
Structure\Syntax\BlockSpanCollector.cs (1)
49foreach (var nodeOrToken in root.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
126token = currentRoot.DescendantNodesAndTokensAndSelf().FirstOrDefault(Function(x) x.HasAnnotation(annotation))
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
82foreach (var current in root.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true))
Shared\Utilities\SemanticMap.Walker.cs (1)
17foreach (var child in node.DescendantNodesAndTokensAndSelf())