266 references to ChildNodesAndTokens
Microsoft.CodeAnalysis (18)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
206foreach (var child in node.ChildNodesAndTokens()) 283foreach (var child in node.ChildNodesAndTokens().Reverse())
Syntax\SyntaxNavigator.cs (8)
100stack.Push(current.ChildNodesAndTokens().GetEnumerator()); 124stack.Push(child.AsNode()!.ChildNodesAndTokens().GetEnumerator()); 146stack.Push(current.ChildNodesAndTokens().Reverse().GetEnumerator()); 171stack.Push(child.AsNode()!.ChildNodesAndTokens().Reverse().GetEnumerator()); 440foreach (var child in node.Parent.ChildNodesAndTokens()) 490foreach (var child in node.Parent.ChildNodesAndTokens().Reverse()) 548foreach (var child in current.Parent.ChildNodesAndTokens()) 602foreach (var child in current.Parent.ChildNodesAndTokens().Reverse())
Syntax\SyntaxNode.cs (3)
787foreach (var nodeOrToken in this.ChildNodesAndTokens()) 1032foreach (var nodeOrToken in this.ChildNodesAndTokens()) 1115foreach (var element in node.ChildNodesAndTokens())
Syntax\SyntaxNodeOrToken.cs (4)
216return node.ChildNodesAndTokens(); 906return GetFirstChildIndexSpanningPosition(node.ChildNodesAndTokens(), position); 957var siblings = parent.ChildNodesAndTokens(); 971foreach (var child in this.Parent.ChildNodesAndTokens().Reverse())
Syntax\SyntaxWalker.cs (1)
36foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CodeStyle (12)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
58foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
57foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
72foreach (var child in containingBlockOrCompilationUnit.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
58var nameNode = memberAccessSyntax.ChildNodesAndTokens().Reverse().FirstOrDefault().AsNode();
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
197foreach (var child in node.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
100var e1 = node1.ChildNodesAndTokens().GetEnumerator(); 101var e2 = node2.ChildNodesAndTokens().GetEnumerator();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
138foreach (var child in node.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
90foreach (var child in commonRoot.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
64var childNodesAndTokens = currentNode.ChildNodesAndTokens();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
82foreach (var child in syntaxNode.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
69foreach (var child in parent.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
245.ChildNodesAndTokens()
Microsoft.CodeAnalysis.CSharp (5)
Parser\Blender.Cursor.cs (2)
68var siblings = this.CurrentNodeOrToken.Parent.ChildNodesAndTokens(); 116var children = node.Parent.ChildNodesAndTokens();
Syntax\CSharpSyntaxNode.cs (2)
232foreach (var child in this.ChildNodesAndTokens()) 272foreach (var child in this.ChildNodesAndTokens().Reverse())
Syntax\CSharpSyntaxWalker.cs (1)
37var childCnt = node.ChildNodesAndTokens().Count;
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
51foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
56foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
61foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
35foreach (var child in root.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
283foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
159foreach (var argument in argumentList.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1817foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Features (12)
EditAndContinue\SyntaxUtilities.cs (1)
137=> list != null && list.ChildNodesAndTokens().Count != 0;
Highlighting\KeywordHighlighters\ReturnStatementHighlighter.cs (1)
57foreach (var child in node.ChildNodesAndTokens())
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
85foreach (var childNodeOrToken in node.ChildNodesAndTokens())
Highlighting\KeywordHighlighters\YieldStatementHighlighter.cs (1)
61foreach (var child in node.ChildNodesAndTokens())
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
68var openBrace = parent.ChildNodesAndTokens().FirstOrDefault(n => n.Kind() == SyntaxKind.OpenBraceToken).AsToken();
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
51foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
56foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
61foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
35foreach (var child in root.ChildNodesAndTokens())
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
159foreach (var argument in argumentList.ChildNodesAndTokens())
Structure\CSharpStructureHelpers.cs (1)
375foreach (var child in node.ChildNodesAndTokens())
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
262foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InteractiveSemanticModelTests.cs (1)
288foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
4790foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (54)
IncrementalParsing\IncrementalParsingTests.cs (9)
1664Assert.Equal(parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count, incrementalTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count); 1667for (int i = 0; i < parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count; i++) 1669Assert.Equal(parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens()[i].Kind(), incrementalTree.GetCompilationUnitRoot().ChildNodesAndTokens()[i].Kind()); 1988Assert.Equal(parsedTree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].AsNode().ToFullString(), incrementalTree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].AsNode().ToFullString()); 2992int incCount = currTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count; 2993int fullCount = fullTree.GetCompilationUnitRoot().ChildNodesAndTokens().Count;
LexicalAndXml\XmlDocCommentTests.cs (24)
770Assert.Equal(4, textsyntax.ChildNodesAndTokens().Count); 771Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString()); 772Assert.Equal(" bar", textsyntax.ChildNodesAndTokens()[1].ToString()); 773Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString()); 774Assert.Equal(" ", textsyntax.ChildNodesAndTokens()[3].ToString()); 804Assert.Equal(4, textsyntax.ChildNodesAndTokens().Count); 805Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString()); 806Assert.Equal(" bar", textsyntax.ChildNodesAndTokens()[1].ToString()); 807Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString()); 808Assert.Equal(" ", textsyntax.ChildNodesAndTokens()[3].ToString()); 1289Assert.Equal(2, tree.GetCompilationUnitRoot().ChildNodesAndTokens().Count); 1290Assert.Equal(SyntaxKind.ClassDeclaration, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].Kind()); 1291var classdecl = (TypeDeclarationSyntax)tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].AsNode(); 1298Assert.Equal(SyntaxKind.EndOfFileToken, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[1].Kind()); 1652Assert.Equal(3, xmltext.ChildNodesAndTokens().Count); 1653Assert.Equal(SyntaxKind.XmlTextLiteralNewLineToken, xmltext.ChildNodesAndTokens()[0].Kind()); 1654Assert.True(xmltext.ChildNodesAndTokens()[0].HasLeadingTrivia); 1655Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[0].ToString()); 1656Assert.Equal(SyntaxKind.XmlTextLiteralToken, xmltext.ChildNodesAndTokens()[1].Kind()); 1657Assert.False(xmltext.ChildNodesAndTokens()[1].HasLeadingTrivia); 1658Assert.Equal("x", xmltext.ChildNodesAndTokens()[1].ToString()); 1659Assert.Equal(SyntaxKind.XmlTextLiteralNewLineToken, xmltext.ChildNodesAndTokens()[2].Kind()); 1660Assert.False(xmltext.ChildNodesAndTokens()[2].HasLeadingTrivia); 1661Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[2].ToString());
ParentChecker.cs (1)
54foreach (var child in node.ChildNodesAndTokens())
Parsing\ParsingErrorRecoveryTests.cs (2)
7279var classDecl = file.ChildNodesAndTokens()[0]; 7300var globalStatement = (GlobalStatementSyntax)file.ChildNodesAndTokens()[0];
Parsing\ParsingTests.cs (1)
263stack.Push(node.ChildNodesAndTokens().GetEnumerator());
Syntax\StructuredTriviaTests.cs (1)
59var child = (XmlElementSyntax)docComment.ChildNodesAndTokens()[0];
Syntax\SyntaxAnnotationTests.cs (2)
286var children = firstNode.ChildNodesAndTokens(); 299var rightNode = firstNodeInNewTree.ChildNodesAndTokens().Last(t => t.IsNode).AsNode();
Syntax\SyntaxListTests.cs (4)
334foreach (var child in node.ChildNodesAndTokens()) 358foreach (var child in node.ChildNodesAndTokens().Reverse()) 372foreach (var node in parseAndGetInitializer(source).ChildNodesAndTokens().Reverse()) 380foreach (var node in parseAndGetInitializer(source).ChildNodesAndTokens())
Syntax\SyntaxNodeTests.cs (10)
983TestReverse(root1.ChildNodesAndTokens()); 984TestReverse(root1.Members[0].ChildNodesAndTokens()); 985TestReverse(root1.Members[1].ChildNodesAndTokens()); 986TestReverse(root1.Members[2].ChildNodesAndTokens()); 1300var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1318var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1337var child = tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0]; 1342var nameChild = member.ChildNodesAndTokens()[3]; 1808var namespaceNode = rootNode.ChildNodesAndTokens()[1].AsNode(); 2025Assert.Equal(SyntaxKind.MethodDeclaration, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].ChildNodesAndTokens()[3].Kind());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (1)
1572foreach (var child in node.ChildNodesAndTokens())
SemanticModelTestBase.cs (1)
48foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
238while (currentExpression.ChildNodesAndTokens().Last().AsNode() is ExpressionSyntax child &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
283foreach (var child in node.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1817foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.Features (12)
BraceMatching\AbstractBraceMatcher.cs (1)
31var braceTokens = (from child in parent.ChildNodesAndTokens()
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
95current = current.ChildNodesAndTokens().FirstOrDefault().AsNode() as TExpressionSyntax;
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
182foreach (var child in current.ChildNodesAndTokens()) 459foreach (var child in current.ChildNodesAndTokens())
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
66foreach (var child in node.ChildNodesAndTokens())
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
59foreach (var child in node.ChildNodesAndTokens())
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
49if (expr?.ChildNodesAndTokens().Count > 1)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
368foreach (var nodeOrToken in node.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
58foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
57foreach (var child in node.ChildNodesAndTokens())
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
58var nameNode = memberAccessSyntax.ChildNodesAndTokens().Reverse().FirstOrDefault().AsNode();
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
197foreach (var child in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\CompilationExtensions.cs (1)
397var childNodesAndTokens = node.ChildNodesAndTokens();
Syntax\XmlHelpers.cs (1)
148foreach (var c in node.ChildNodesAndTokens())
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
113Dim list = node.ChildNodesAndTokens()
Syntax\VisualBasicSyntaxNode.vb (2)
336For Each child In Me.ChildNodesAndTokens() 362For Each child In Me.ChildNodesAndTokens().Reverse
Syntax\VisualBasicSyntaxWalker.vb (1)
33Dim list = node.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Analyzers\VisualBasic\Analyzers\OrderModifiers\VisualBasicOrderModifiersDiagnosticAnalyzer.vb (1)
33For Each child In root.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
990For Each child In node.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (6)
src\Features\VisualBasicTest\Utils.vb (6)
58For Each child In node.ChildNodesAndTokens() 72Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 79Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 91Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 98Return syntaxTree.GetRoot().ChildNodesAndTokens().Where(Function(n) n.IsNode). 105Return syntaxTree.GetRoot().ChildNodesAndTokens().Where(Function(n) n.IsNode).
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Completion\KeywordRecommenders\PreprocessorDirectives\PreprocessorHelpers.vb (1)
44For Each child In node.ChildNodesAndTokens()
Highlighting\KeywordHighlighters\TryBlockHighlighter.vb (1)
61For Each childNodeOrToken In node.ChildNodesAndTokens()
LineSeparators\VisualBasicLineSeparatorService.vb (1)
155Dim lastToken = node.ChildNodesAndTokens().Reverse().First()
src\Analyzers\VisualBasic\Analyzers\OrderModifiers\VisualBasicOrderModifiersDiagnosticAnalyzer.vb (1)
33For Each child In root.ChildNodesAndTokens()
Structure\Providers\DocumentationCommentStructureProvider.vb (2)
22Dim firstCommentToken = documentationComment.ChildNodesAndTokens().FirstOrNull() 23Dim lastCommentToken = documentationComment.ChildNodesAndTokens().LastOrNull()
Structure\VisualBasicStructureHelpers.vb (1)
217For Each child In attributeOwner.ChildNodesAndTokens
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (6)
Utils.vb (6)
58For Each child In node.ChildNodesAndTokens() 72Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 79Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 91Return node.ChildNodesAndTokens().Where(Function(n) n.IsNode). 98Return syntaxTree.GetRoot().ChildNodesAndTokens().Where(Function(n) n.IsNode). 105Return syntaxTree.GetRoot().ChildNodesAndTokens().Where(Function(n) n.IsNode).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Compilation\SemanticModelAPITests.vb (12)
2450Dim v3 = DirectCast(v2.ChildNodesAndTokens()(1).AsNode(), LocalDeclarationStatementSyntax) 2465v3 = DirectCast(v2.ChildNodesAndTokens()(2).AsNode(), LocalDeclarationStatementSyntax) 2481Dim v4 = DirectCast(v2.ChildNodesAndTokens()(7).AsNode(), LocalDeclarationStatementSyntax) 2494v4 = DirectCast(v2.ChildNodesAndTokens()(8).AsNode(), LocalDeclarationStatementSyntax) 2507v4 = DirectCast(v2.ChildNodesAndTokens()(9).AsNode(), LocalDeclarationStatementSyntax) 2520Dim v5 = DirectCast(v2.ChildNodesAndTokens()(11).AsNode(), AssignmentStatementSyntax) 2577Dim v3 = DirectCast(v2.ChildNodesAndTokens()(1).AsNode(), LocalDeclarationStatementSyntax) 2592v3 = DirectCast(v2.ChildNodesAndTokens()(2).AsNode(), LocalDeclarationStatementSyntax) 2606Dim v4 = DirectCast(v2.ChildNodesAndTokens()(7).AsNode(), LocalDeclarationStatementSyntax) 2619v4 = DirectCast(v2.ChildNodesAndTokens()(8).AsNode(), LocalDeclarationStatementSyntax) 2632v4 = DirectCast(v2.ChildNodesAndTokens()(9).AsNode(), LocalDeclarationStatementSyntax) 2645Dim v5 = DirectCast(v2.ChildNodesAndTokens()(11).AsNode(), AssignmentStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (62)
IncrementalParser\IncrementalParser.vb (4)
710Dim exp1 = newTree.GetRoot().ChildNodesAndTokens()(0).ChildNodesAndTokens()(1) 711Dim inc1 = incTree.GetRoot().ChildNodesAndTokens()(0).ChildNodesAndTokens()(1) 1129Dim children1 = newTree.GetRoot().ChildNodesAndTokens() 1130Dim children2 = fulltree.GetRoot().ChildNodesAndTokens()
Parser\ParseExpression.vb (38)
302Assert.Equal(SyntaxKind.MyBaseExpression, expr.ChildNodesAndTokens()(0).Kind()) 304Assert.Equal(SyntaxKind.MyClassExpression, expr.ChildNodesAndTokens()(0).Kind()) 306Assert.Equal(SyntaxKind.GlobalName, expr.ChildNodesAndTokens()(0).Kind()) 311Assert.Equal(SyntaxKind.MeExpression, expr.ChildNodesAndTokens()(0).Kind()) 319Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).Kind()) 320Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 330Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).Kind()) 331Assert.Equal(SyntaxKind.ParenthesizedExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 339Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).Kind()) 340Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).Kind()) 341Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 356Assert.Equal(SyntaxKind.TupleExpression, expr.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()) 366Assert.Equal(SyntaxKind.TupleExpression, expr.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()) 376Assert.Equal(SyntaxKind.TupleExpression, expr.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()) 397Assert.Equal(SyntaxKind.TupleExpression, expr.ChildNodesAndTokens()(0).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()) 407Assert.Equal(SyntaxKind.SimpleArgument, expr.ChildNodesAndTokens()(1).Kind()) 408Assert.Equal(SyntaxKind.NameColonEquals, expr.ChildNodesAndTokens()(1).ChildNodesAndTokens()(0).Kind()) 409Dim missingComma = expr.ChildNodesAndTokens()(2) 412Dim missingArg = expr.ChildNodesAndTokens()(3) 417Assert.Equal(SyntaxKind.TupleExpression, expr.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) 1035Assert.Equal(" a ", el.Content.First.ChildNodesAndTokens().First.ToFullString()) 1045Assert.Equal(" a ", el.Content.First.ChildNodesAndTokens().First.ToFullString()) 1046Assert.Equal("<", el.Content.First.ChildNodesAndTokens(1).AsToken.ValueText) 1047Assert.Equal(" b ", el.Content.First.ChildNodesAndTokens().Last.ToFullString()) 1924Assert.Equal(SyntaxKind.FromClause, expr.ChildNodesAndTokens()(0).Kind())
Parser\ParseStatements.vb (7)
363Dim subMain = TryCast(moduleM.ChildNodesAndTokens()(1).AsNode, MethodBlockSyntax) 364Dim ifStmt = TryCast(subMain.ChildNodesAndTokens()(1).AsNode, SingleLineIfStatementSyntax) 578Dim subMain = TryCast(moduleM.ChildNodesAndTokens()(1).AsNode, MethodBlockSyntax) 579Assert.Equal(4, subMain.ChildNodesAndTokens().Count) 580Assert.Equal(SyntaxKind.SingleLineIfStatement, subMain.ChildNodesAndTokens()(1).Kind()) 581Assert.Equal(SyntaxKind.ExpressionStatement, subMain.ChildNodesAndTokens()(2).Kind()) 582Assert.Equal(SyntaxKind.InvocationExpression, DirectCast(subMain.ChildNodesAndTokens()(2).AsNode, ExpressionStatementSyntax).Expression.Kind)
Syntax\SyntaxAnnotationTests.vb (2)
268Dim children = firstNode.ChildNodesAndTokens() 281Dim rightNode = Enumerable.Last(firstNodeInNewTree.ChildNodesAndTokens(), Function(t) t.IsNode).AsNode()
TestSyntaxNodes.vb (11)
77Dim children = argList.ChildNodesAndTokens() 88children = simpleTree.ChildNodesAndTokens() 347VerifyListSpans(tree.ChildNodesAndTokens(), tree.FullSpan) 1738Assert.Equal(False, node.ChildNodesAndTokens().Count = 0) 1739Assert.Equal(2, node.ChildNodesAndTokens().Count) 1834Dim children1 = tree.ChildNodesAndTokens() 1835Dim children2 = tree.ChildNodesAndTokens() 1838Dim child2_1 = tree.ChildNodesAndTokens()(1) 1839Dim child2_2 = tree.ChildNodesAndTokens()(1) 1877Dim firstMember3 = nsBlock.ChildNodesAndTokens()(1) 1883firstMember3 = nsBlock.ChildNodesAndTokens()(1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (10)
ParserTestUtilities.vb (10)
379For Each child In node.ChildNodesAndTokens() 389For Each child In node.ChildNodesAndTokens() 398For Each child In node.ChildNodesAndTokens() 411For Each child In node.AsNode.ChildNodesAndTokens() 439For Each child In tree.GetRoot().ChildNodesAndTokens() 448For Each child In node.ChildNodesAndTokens() 779For Each child In node.AsNode.ChildNodesAndTokens() 801For Each child In node.AsNode.ChildNodesAndTokens() 823For Each child In node.AsNode.ChildNodesAndTokens() 852For Each child In node.AsNode.ChildNodesAndTokens()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Classification\Worker.vb (1)
187For Each child As SyntaxNodeOrToken In directiveSyntax.ChildNodesAndTokens()
Classification\Worker.XmlClassifier.vb (1)
315Dim childNodesAndTokens = syntax.ChildNodesAndTokens()
CodeCleanup\VisualBasicCodeCleanerService.vb (1)
51For Each child In node.ChildNodesAndTokens()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
990For Each child In node.ChildNodesAndTokens()
Microsoft.CodeAnalysis.Workspaces (22)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (8)
125oldStack.Push(oldRoot.ChildNodesAndTokens().GetEnumerator()); 126newStack.Push(newRoot.ChildNodesAndTokens().GetEnumerator()); 154oldStack.Push(currentOld.AsNode()!.ChildNodesAndTokens().GetEnumerator()); 155newStack.Push(currentNew.AsNode()!.ChildNodesAndTokens().GetEnumerator()); 180oldStack.Push(oldRoot.ChildNodesAndTokens().Reverse().GetEnumerator()); 181newStack.Push(newRoot.ChildNodesAndTokens().Reverse().GetEnumerator()); 222oldStack.Push(currentOld.AsNode()!.ChildNodesAndTokens().Reverse().GetEnumerator()); 223newStack.Push(currentNew.AsNode()!.ChildNodesAndTokens().Reverse().GetEnumerator());
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
155foreach (var child in node.ChildNodesAndTokens())
FindSymbols\FindReferences\FindReferenceCache.cs (1)
166foreach (var child in currentNode.ChildNodesAndTokens().Reverse())
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
147foreach (var child in node.ChildNodesAndTokens())
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
76foreach (var child in current.ChildNodesAndTokens())
ReassignedVariable\AbstractReassignedVariableService.cs (2)
81foreach (var child in current.ChildNodesAndTokens()) 306foreach (var child in current.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
100var e1 = node1.ChildNodesAndTokens().GetEnumerator(); 101var e2 = node2.ChildNodesAndTokens().GetEnumerator();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
138foreach (var child in node.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
90foreach (var child in commonRoot.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
64var childNodesAndTokens = currentNode.ChildNodesAndTokens();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
82foreach (var child in syntaxNode.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
69foreach (var child in parent.ChildNodesAndTokens())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
245.ChildNodesAndTokens()
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SymbolKeyTests.cs (1)
1520foreach (var child in node.ChildNodesAndTokens())