76 references to ChildNodesAndTokens
Microsoft.CodeAnalysis (5)
Syntax\SyntaxDiffer.cs (5)
325var children = new SyntaxNodeOrToken[node.ChildNodesAndTokens().Count]; 326foreach (var child in node.ChildNodesAndTokens()) 392foreach (var child in stackNode.ChildNodesAndTokens()) 474foreach (var n1 in node1.ChildNodesAndTokens()) 485foreach (var n2 in node2.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
38foreach (var child in current.ChildNodesAndTokens().Reverse())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
118foreach (var child in current.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp (1)
Parser\Blender.Cursor.cs (1)
164foreach (var child in this.CurrentNodeOrToken.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (19)
IncrementalParsing\GrammarAmbiguities.cs (5)
113Assert.Equal(expectedNode.ChildNodesAndTokens().Count, actualNode.ChildNodesAndTokens().Count); 115for (var i = 0; i < expectedNode.ChildNodesAndTokens().Count; i++) 117AssertNodesAreEquivalent(expectedNode.ChildNodesAndTokens()[i], 118actualNode.ChildNodesAndTokens()[i]);
IncrementalParsing\IncrementalParsingTests.cs (7)
3674var incChildren = incNode.ChildNodesAndTokens(); 3675var fullChildren = fullNode.ChildNodesAndTokens(); 3744Assert.Equal(parsedTreeNode.ChildNodesAndTokens().Count, incrementalTreeNode.ChildNodesAndTokens().Count); 3746for (int i = 0; i < parsedTreeNode.ChildNodesAndTokens().Count; i++) 3748CompareTreeEquivalence(parsedTreeNode.ChildNodesAndTokens()[i], incrementalTreeNode.ChildNodesAndTokens()[i]);
IncrementalParsing\SyntaxDifferences.cs (2)
42foreach (var child in newNode.ChildNodesAndTokens()) 51foreach (var child in node.ChildNodesAndTokens())
Parsing\ParsingErrorRecoveryTests.cs (2)
7282var methodDecl = classDecl.ChildNodesAndTokens()[3]; 7286var methodBody = methodDecl.ChildNodesAndTokens()[3];
Parsing\ParsingTests.cs (1)
285stack.Push(current.ChildNodesAndTokens().GetEnumerator());
Syntax\SyntaxNodeTests.cs (2)
1829foreach (var child in nOrT.ChildNodesAndTokens()) 2025Assert.Equal(SyntaxKind.MethodDeclaration, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].ChildNodesAndTokens()[3].Kind());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
75foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.EditorFeatures (3)
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (3)
178var firstChild = node.Value.ChildNodesAndTokens().FirstOrNull(); 219.ChildNodesAndTokens() 271.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxNode.vb (1)
219PushNodesWithErrors(nodesToProcess, nodeOrToken.ChildNodesAndTokens())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
127For Each child In nodeOrToken.ChildNodesAndTokens().Reverse()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (33)
IncrementalParser\IncrementalParser.vb (4)
710Dim exp1 = newTree.GetRoot().ChildNodesAndTokens()(0).ChildNodesAndTokens()(1) 711Dim inc1 = incTree.GetRoot().ChildNodesAndTokens()(0).ChildNodesAndTokens()(1) 715Dim exp2 = exp1.ChildNodesAndTokens()(1) 716Dim inc2 = inc1.ChildNodesAndTokens()(1)
IncrementalParser\SyntaxDifferences.vb (2)
31For Each child In newNode.ChildNodesAndTokens() 39For Each child In node.ChildNodesAndTokens()
Parser\ParseExpression.vb (27)
320Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 331Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 340Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 341Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 357Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 358Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 367Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 368Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 377Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 378Assert.Equal(SyntaxKind.NameColonEquals, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 379Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(1).Kind()) 398Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 399Assert.Equal(SyntaxKind.NameColonEquals, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 400Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(1).Kind()) 408Assert.Equal(SyntaxKind.NameColonEquals, expr.ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 418Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 419Assert.Equal(SyntaxKind.NameColonEquals, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 421Dim missingArg2 = expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (6)
ParserTestUtilities.vb (6)
164For Each child In node.ChildNodesAndTokens() 309Dim children = node.ChildNodesAndTokens 698For Each child In node.ChildNodesAndTokens() 705For Each nd In node.ChildNodesAndTokens() 742For Each child In node.ChildNodesAndTokens() 771For Each child In node.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
127For Each child In nodeOrToken.ChildNodesAndTokens().Reverse()
Microsoft.CodeAnalysis.Workspaces (3)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
106foreach (var child in nodeOrToken.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
38foreach (var child in current.ChildNodesAndTokens().Reverse())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
118foreach (var child in current.ChildNodesAndTokens())