21 references to ChildNodesAndTokens
Microsoft.CodeAnalysis.Razor.Compiler (17)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (4)
806var children = new ChildNodesHelper(node.ChildNodesAndTokens()); 1250var children = new ChildNodesHelper(blockSyntax.ChildNodesAndTokens()); 1318var valueChildren = value.ChildNodesAndTokens(); 1800node.Value?.ChildNodesAndTokens() is { Count: >= 2 } valueChildren &&
Language\Legacy\LegacySyntaxNodeExtensions.cs (1)
99_ => LocateOwnerForChildSyntaxList(node.ChildNodesAndTokens(), change)
Language\Legacy\WhiteSpaceRewriter.cs (2)
25var children = node.ChildNodesAndTokens(); 39children = node.ChildNodesAndTokens();
Language\Syntax\SyntaxNavigator.cs (6)
45stack.Push(current.ChildNodesAndTokens().GetEnumerator()); 89stack.Push(current.ChildNodesAndTokens().Reverse().GetEnumerator()); 138foreach (var child in current.Parent.ChildNodesAndTokens()) 180foreach (var child in node.Parent.ChildNodesAndTokens()) 222foreach (var child in current.Parent.ChildNodesAndTokens().Reverse()) 264foreach (var child in node.Parent.ChildNodesAndTokens().Reverse())
Language\Syntax\SyntaxNode.cs (2)
226foreach (var nodeOrToken in ChildNodesAndTokens()) 240foreach (var nodeOrToken in ChildNodesAndTokens())
Language\Syntax\SyntaxNodeOrToken.cs (1)
155return node.ChildNodesAndTokens();
Language\Syntax\SyntaxWalker.cs (1)
39foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.Razor.Workspaces (4)
CodeActions\Razor\ExtractToComponentCodeActionProvider.cs (1)
225foreach (var child in commonAncestor.ChildNodesAndTokens())
Completion\CSharpRazorKeywordCompletionItemProvider.cs (1)
56if (owner.ChildNodesAndTokens().Any(static x => !x.AsToken(out var token) || !IsCSharpRazorKeywordCompletableToken(token)))
Completion\DirectiveCompletionItemProvider.cs (1)
91if (owner.ChildNodesAndTokens().Any(static x => !x.AsToken(out var token) || !IsDirectiveCompletableToken(token)))
SemanticTokens\SemanticTokensVisitor.cs (1)
565foreach (var childNodeOrToken in node.ChildNodesAndTokens())