376 references to GetCompilationUnitRoot
Microsoft.CodeAnalysis.VisualBasic (7)
Binding\Binder_Expressions.vb (1)
1082
Dim root As CompilationUnitSyntax = tree.
GetCompilationUnitRoot
()
Compilation\VisualBasicCompilation.vb (2)
822
Dim root = tree.
GetCompilationUnitRoot
()
2685
Dim unit = syntaxTree.
GetCompilationUnitRoot
()
OptionsValidator.vb (1)
34
Dim importList As SyntaxList(Of ImportsStatementSyntax) = tree.
GetCompilationUnitRoot
().Imports
Symbols\Source\SourceFile.vb (2)
112
Dim compilationUnitSyntax = _syntaxTree.
GetCompilationUnitRoot
()
164
Dim compilationUnitSyntax = _syntaxTree.
GetCompilationUnitRoot
()
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
77
Dim root As CompilationUnitSyntax = tree.
GetCompilationUnitRoot
()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
SemanticModelExtensions.vb (1)
181
Dim root = semanticModel.SyntaxTree.
GetCompilationUnitRoot
()
VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
57
Return SpecializedCollections.SingletonEnumerable(tree.
GetCompilationUnitRoot
().Imports.GetContainedSpan())
VisualBasicSemanticFacts.vb (1)
153
Dim root = original.SyntaxTree.
GetCompilationUnitRoot
()
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (71)
CodeGen\CodeGenScriptTests.vb (1)
30
Dim typeSyntax = DirectCast(DirectCast(tree.
GetCompilationUnitRoot
().Members(0), ClassBlockSyntax).Members(0), FieldDeclarationSyntax).Declarators(0).AsClause.Type
CodeGen\CodeGenTuples.vb (70)
1502
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
1911
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
1971
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
4690
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
5616
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
5651
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
5872
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
6048
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
6093
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
6137
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
6173
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
6395
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
9008
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
9034
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
9060
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
9221
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
9271
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
11146
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
11774
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
11820
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
11851
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
11892
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
11922
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
11967
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12003
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12038
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12073
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12107
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12140
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12170
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12205
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12239
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12269
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12300
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12330
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12375
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12416
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12447
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12500
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12586
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12638
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12685
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12736
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12800
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12872
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12944
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
12993
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
16535
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
17095
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
18270
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
18358
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
18400
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19525
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19580
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19647
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19682
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19734
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19775
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
19990
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
20040
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
21550
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
21584
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
21617
Dim nodes = comp.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes()
21790
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
21826
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
21862
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
22322
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
22362
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
22401
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
22439
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
Microsoft.CodeAnalysis.VisualBasic.Features (1)
VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
57
Return SpecializedCollections.SingletonEnumerable(tree.
GetCompilationUnitRoot
().Imports.GetContainedSpan())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (264)
Compilation\GetSemanticInfoBrokenCodeTests.vb (11)
31
VisitAllExpressions(model, tree.
GetCompilationUnitRoot
())
52
VisitAllExpressions(model, tree.
GetCompilationUnitRoot
())
70
VisitAllExpressions(model, tree.
GetCompilationUnitRoot
())
91
For Each node In GetAllExpressions(tree.
GetCompilationUnitRoot
())
110
VisitAllDeclarations(model, oldTree.
GetCompilationUnitRoot
())
117
VisitAllDeclarations(model, newTree.
GetCompilationUnitRoot
())
156
For Each expr In GetAllExpressions(tree.
GetCompilationUnitRoot
())
180
For Each node In GetAllStatements(tree.
GetCompilationUnitRoot
())
345
VisitAllExpressions(model, tree.
GetCompilationUnitRoot
())
469
For Each expr In GetAllExpressions(tree.
GetCompilationUnitRoot
())
479
For Each expr In GetAllExpressions(tree.
GetCompilationUnitRoot
())
Compilation\SemanticModelAPITests.vb (41)
69
Dim children = tree.
GetCompilationUnitRoot
().DescendantNodes()
111
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LocalDeclarationStatementSyntax).Skip(1).First
151
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LocalDeclarationStatementSyntax).Skip(1).First
193
Dim descendants = tree.
GetCompilationUnitRoot
().DescendantNodes()
232
Dim statement = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().First()
494
Dim root = tree.
GetCompilationUnitRoot
534
Dim root = tree.
GetCompilationUnitRoot
588
Dim root = tree.
GetCompilationUnitRoot
()
751
Dim root = tree.
GetCompilationUnitRoot
()
813
Dim root = tree.
GetCompilationUnitRoot
()
879
Dim root = tree.
GetCompilationUnitRoot
()
930
Dim root = tree.
GetCompilationUnitRoot
()
965
Dim root = tree.
GetCompilationUnitRoot
()
1000
Dim root = tree.
GetCompilationUnitRoot
()
1118
Dim root = tree.
GetCompilationUnitRoot
()
1161
Dim root = tree.
GetCompilationUnitRoot
()
1417
Dim root = tree.
GetCompilationUnitRoot
()
1486
Dim root = tree.
GetCompilationUnitRoot
()
1535
Dim root = tree.
GetCompilationUnitRoot
()
1576
Dim root = tree.
GetCompilationUnitRoot
()
1655
Dim root = tree.
GetCompilationUnitRoot
()
1691
Dim root = tree.
GetCompilationUnitRoot
()
1766
Dim root = tree.
GetCompilationUnitRoot
()
1786
Dim root = tree.
GetCompilationUnitRoot
()
1817
Dim root = tree.
GetCompilationUnitRoot
()
1856
Dim root = tree.
GetCompilationUnitRoot
()
1899
Dim root = tree.
GetCompilationUnitRoot
()
1942
Dim root = tree.
GetCompilationUnitRoot
()
1976
Dim root = tree.
GetCompilationUnitRoot
()
2011
Dim root = tree.
GetCompilationUnitRoot
()
2445
Dim cunit = tree.
GetCompilationUnitRoot
()
2572
Dim cunit = tree.
GetCompilationUnitRoot
()
2777
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MemberAccessExpressionSyntax).First()
2814
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MemberAccessExpressionSyntax).First()
2850
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of BinaryExpressionSyntax).First()
2900
Dim castNode = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of CTypeExpressionSyntax).First()
4025
Dim nodes = From n In tree.
GetCompilationUnitRoot
().DescendantNodes() Where n.Kind = SyntaxKind.IdentifierName Select CType(n, IdentifierNameSyntax)
4060
Dim assignments = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of AssignmentStatementSyntax)()
4506
Dim root = tree.
GetCompilationUnitRoot
4584
Dim root = tree.
GetCompilationUnitRoot
4614
Dim root = tree.
GetCompilationUnitRoot
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (43)
45
Dim vardecl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
71
Dim memberSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodStatementSyntax)().First()
94
Dim memberSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodStatementSyntax)().First()
116
Dim memberSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodStatementSyntax)().First()
143
Dim vardecl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
174
Dim vardecl1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
177
Dim vardecl2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
208
Dim vardecl1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
211
Dim vardecl2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)().First()
239
Dim paramRef = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
269
Dim paramRef = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
300
Dim paramRef1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
303
Dim paramRef2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
333
Dim paramRef1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
336
Dim paramRef2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().First(Function(ins) ins.ToString() = "p")
401
Dim n1Syntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of NamespaceBlockSyntax)().First()
417
Dim e1Syntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of EnumBlockSyntax)().First()
425
Dim c1Syntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
1148
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of OperatorStatementSyntax)()
1420
Dim node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("lambdaParam", StringComparison.Ordinal)).Parent
1634
Dim node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("VB6", StringComparison.Ordinal)).Parent.Parent
2134
Dim node = tree.
GetCompilationUnitRoot
().FindToken(tree.
GetCompilationUnitRoot
().ToFullString().IndexOf("F(2)", StringComparison.Ordinal)).Parent
2472
Dim delegateDecl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of DelegateStatementSyntax)().First()
2498
Dim node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("Delegate", StringComparison.Ordinal)).Parent
2503
node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("Delegate", 30, StringComparison.Ordinal)).Parent
2508
node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("Delegate", 140, StringComparison.Ordinal)).Parent
2513
node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("Delegate", 160, StringComparison.Ordinal)).Parent
2540
Dim node = treeA.
GetCompilationUnitRoot
().FindToken(treeA.
GetCompilationUnitRoot
().ToFullString().IndexOf("lambdaParam", StringComparison.Ordinal)).Parent
2569
Dim memberSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodStatementSyntax)().First()
2602
Dim rootA = treeA.
GetCompilationUnitRoot
()
2606
Dim rootB = treeB.
GetCompilationUnitRoot
()
2650
Dim binaryOp = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of BinaryExpressionSyntax)().First()
2675
Dim node = tree.
GetCompilationUnitRoot
().FindToken(position).Parent
2854
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ModifiedIdentifierSyntax)()
2888
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of PropertyStatementSyntax)()
Compilation\SemanticModelLookupSymbolsAPITests.vb (1)
1946
Dim eof = tree.
GetCompilationUnitRoot
().FullSpan.End
Compilation\SuppressAccessibilityChecksTests.vb (2)
118
Dim root = tree.
GetCompilationUnitRoot
()
237
Dim root = tree.
GetCompilationUnitRoot
()
DeclaringSyntaxNodeTests.vb (6)
106
Dim token = tree.
GetCompilationUnitRoot
().FindToken(position)
120
Dim token = tree.
GetCompilationUnitRoot
().FindToken(position)
131
Dim node = tree.
GetCompilationUnitRoot
().FindToken(position).Parent.FirstAncestorOrSelf(Of TNode)()
234
Dim declaratorA1 = tree.
GetCompilationUnitRoot
().FindToken(posA1).Parent.FirstAncestorOrSelf(Of VariableDeclaratorSyntax)()
269
Dim declaratorA1 = tree.
GetCompilationUnitRoot
().FindToken(posA1).Parent.FirstAncestorOrSelf(Of VariableDeclaratorSyntax)()
310
Dim declaratorA1 = tree.
GetCompilationUnitRoot
().FindToken(posA1).Parent.FirstAncestorOrSelf(Of VariableDeclaratorSyntax)()
FlowAnalysis\FlowTestBase.vb (1)
173
Dim startToken As SyntaxToken = tree.
GetCompilationUnitRoot
().FindToken(region.Start, True)
FlowAnalysis\IterationJumpYieldStatementTests.vb (1)
1369
Dim stmtNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Next", StringComparison.Ordinal)).Parent, NextStatementSyntax)
FlowAnalysis\RegionAnalysisTests.vb (28)
27
Dim statement = compilation.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodesAndSelf().OfType(Of StatementSyntax)().First()
4829
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
4852
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
4875
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
4900
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("If False", StringComparison.Ordinal)).Parent, IfStatementSyntax)
4926
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Else", StringComparison.Ordinal)).Parent, ElseStatementSyntax)
4948
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("With New Object()", StringComparison.Ordinal)).Parent, WithStatementSyntax)
4975
Dim withStatement = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("With tableauEmission(t)", StringComparison.Ordinal)).Parent, WithStatementSyntax)
5000
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Try", StringComparison.Ordinal)).Parent, TryStatementSyntax)
5024
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Catch e As Exception", StringComparison.Ordinal)).Parent, CatchStatementSyntax)
5048
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Finally", StringComparison.Ordinal)).Parent, FinallyStatementSyntax)
5071
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("SyncLock New With {.x = 0}", StringComparison.Ordinal)).Parent, SyncLockStatementSyntax)
5094
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("While True", StringComparison.Ordinal)).Parent, WhileStatementSyntax)
5117
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Using mem = New MemoryStream()", StringComparison.Ordinal)).Parent, UsingStatementSyntax)
5145
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Loop While Me.backwardBranchChanged", StringComparison.Ordinal)).Parent, LoopStatementSyntax)
5169
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Select Case 1 + 2 + 3", StringComparison.Ordinal)).Parent, SelectStatementSyntax)
5193
Dim selectSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Select Case 1 + 2 + 3", StringComparison.Ordinal)).Parent, SelectStatementSyntax)
5217
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Do", StringComparison.Ordinal)).Parent, DoStatementSyntax)
5239
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("For i = 0 To 1", StringComparison.Ordinal)).Parent, ForStatementSyntax)
5261
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("For Each c In """"", StringComparison.Ordinal)).Parent, ForEachStatementSyntax)
7136
Dim stmtNode = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of StatementSyntax).Where(Function(node) node.ToString() = "Return Nothing").First()
8232
Dim root = tree.
GetCompilationUnitRoot
()
8263
Dim root = tree.
GetCompilationUnitRoot
()
8295
Dim root = tree.
GetCompilationUnitRoot
()
9864
Dim stmtNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("End Select", StringComparison.Ordinal)).Parent, StatementSyntax)
9887
Dim stmtNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Select Case", StringComparison.Ordinal)).Parent, StatementSyntax)
9919
Dim invocation = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of InvocationExpressionSyntax)().Single()
9930
Dim lambda = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LambdaExpressionSyntax)().Single()
FlowAnalysis\RegionAnalysisTestsWithStaticLocals.vb (10)
2732
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
2755
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
2778
Dim exprSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("{4, 5}", StringComparison.Ordinal)).Parent, CollectionInitializerSyntax)
2803
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("If False", StringComparison.Ordinal)).Parent, IfStatementSyntax)
2830
Dim stmtSyntaxNode = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.GetRoot.ToFullString().IndexOf("Else", StringComparison.Ordinal)).Parent, ElseStatementSyntax)
5012
Dim root = tree.
GetCompilationUnitRoot
()
5046
Dim root = tree.
GetCompilationUnitRoot
()
5082
Dim root = tree.
GetCompilationUnitRoot
()
6514
Dim invocation = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of InvocationExpressionSyntax)().Single()
6523
Dim lambda = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LambdaExpressionSyntax)().Single()
FlowAnalysis\TryLockUsingStatementTests.vb (4)
1670
Dim index = compilation.SyntaxTrees.First().
GetCompilationUnitRoot
().ToFullString().IndexOf("Catch ex As Exception", StringComparison.Ordinal)
1671
Dim statement = DirectCast(compilation.SyntaxTrees.First().
GetCompilationUnitRoot
().FindToken(index).Parent, StatementSyntax)
1699
Dim index = compilation.SyntaxTrees.First().
GetCompilationUnitRoot
().ToFullString().IndexOf("Finally", StringComparison.Ordinal)
1700
Dim statement = DirectCast(compilation.SyntaxTrees.First().
GetCompilationUnitRoot
().FindToken(index).Parent, StatementSyntax)
Semantics\Conversions.vb (6)
4057
Dim variableDeclarator = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("ii", StringComparison.Ordinal)).Parent.Parent, VariableDeclaratorSyntax)
4066
Dim sourceExpression1 = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("jj)", StringComparison.Ordinal)).Parent, ExpressionSyntax)
4072
Dim sourceExpression2 = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("ss)", StringComparison.Ordinal)).Parent, ExpressionSyntax)
4143
Dim variableDeclarator = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("ii", StringComparison.Ordinal)).Parent.Parent, VariableDeclaratorSyntax)
4152
Dim sourceExpression1 = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("jj)", StringComparison.Ordinal)).Parent, ExpressionSyntax)
4158
Dim sourceExpression2 = CType(tree.
GetCompilationUnitRoot
().FindToken(source.IndexOf("ss)", StringComparison.Ordinal)).Parent, ExpressionSyntax)
Semantics\GetExtendedSemanticInfoTests.vb (3)
8589
Dim aliases = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of SimpleImportsClauseSyntax).ToArray()
8633
Dim staticLocals = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LocalDeclarationStatementSyntax).ToArray()
8675
Dim identifiers = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax).ToArray()
Semantics\GetSemanticInfoTests.vb (13)
3820
Dim source = compilation.SyntaxTrees.Single().
GetCompilationUnitRoot
().ToFullString()
3822
Dim syntaxNode = compilation.SyntaxTrees().Single().
GetCompilationUnitRoot
().FindToken(position).Parent.Parent.Parent.DescendantNodesAndSelf.OfType(Of GroupAggregationSyntax).Single()
3843
Dim source = compilation.SyntaxTrees.Single().
GetCompilationUnitRoot
().ToFullString()
3845
Dim syntaxNode = compilation.SyntaxTrees().Single().
GetCompilationUnitRoot
().FindToken(position).Parent.DescendantNodesAndSelf.OfType(Of LabelSyntax).Single()
4396
Dim rootA = treeA.
GetCompilationUnitRoot
()
4497
Dim originalSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes.OfType(Of InvocationExpressionSyntax).Last()
4559
Dim originalSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes.OfType(Of MemberAccessExpressionSyntax).Single()
6146
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
6208
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
6250
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
6280
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
6310
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
6348
Dim tokens = tree.
GetCompilationUnitRoot
().DescendantTokens()
Semantics\GotoTests.vb (16)
198
Dim labelStatementSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
199
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
231
Dim labelStatementSyntaxArray = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToArray()
232
Dim gotoSyntaxArray = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToArray()
272
Dim labelStatementSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
273
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
304
Dim labelStatementSyntaxOuter = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
305
Dim labelStatementSyntaxInner = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().Last
306
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
345
Dim labelStatementSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
346
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
381
Dim labelStatementSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
382
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
415
Dim labelStatementSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of LabelStatementSyntax)().ToList().First
416
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
450
Dim gotoSyntax = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of GoToStatementSyntax)().ToList().First
Semantics\LambdaSemanticInfoTests.vb (2)
664
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of InvocationExpressionSyntax)().First()
1031
Dim node = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of InvocationExpressionSyntax)().ToArray()(1)
Semantics\MeMyBaseMyClassTests.vb (2)
564
Dim expressions = tree.
GetCompilationUnitRoot
().DescendantNodesAndSelf.Where(Function(x) x.Kind = SyntaxKind.MeExpression Or x.Kind = SyntaxKind.MyBaseExpression Or x.Kind = SyntaxKind.MyClassExpression Or x.Kind = SyntaxKind.SimpleMemberAccessExpression).ToList()
582
Dim expressions = tree.
GetCompilationUnitRoot
().DescendantNodesAndSelf.Where(Function(x) x.Kind = SyntaxKind.MeExpression Or x.Kind = SyntaxKind.MyBaseExpression Or x.Kind = SyntaxKind.MyClassExpression Or x.Kind = SyntaxKind.SimpleMemberAccessExpression).ToList()
Semantics\NonTrailingNamedArgumentsTests.vb (16)
64
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
371
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
401
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
433
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
464
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
495
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
528
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
559
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
593
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
623
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
680
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
710
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
742
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
775
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
806
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
943
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes()
Semantics\PartialMethodsTest.vb (37)
61
Dim pType01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
63
Dim pType02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
71
Dim pMethod01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
72
Dim pMethod02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
85
Dim pParam01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
86
Dim pParam02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
141
Dim pType01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
143
Dim pType02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
151
Dim pMethod01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
152
Dim pMethod02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
165
Dim pTypeParam01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
166
Dim pTypeParam02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
223
Dim pType01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
225
Dim pType02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
233
Dim pMethod01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
234
Dim pMethod02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
247
Dim pParam01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
248
Dim pParam02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
280
Dim id = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodStatementSyntax).
353
Dim pType01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
355
Dim pType02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
358
Dim pType03 = tree3.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ClassBlockSyntax)().First()
369
Dim pMethod01 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
370
Dim pMethod02 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
371
Dim pMethod03 = tree3.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockSyntax)().First()
1042
Dim root1 = tree1.
GetCompilationUnitRoot
()
1043
Dim root2 = tree1.
GetCompilationUnitRoot
()
1044
Dim para1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
1045
Dim para2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
1046
Dim typePara1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
1047
Dim typePara2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
1098
Dim root1 = tree1.
GetCompilationUnitRoot
()
1099
Dim root2 = tree1.
GetCompilationUnitRoot
()
1100
Dim para1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
1101
Dim para2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of ParameterSyntax)().First()
1102
Dim typePara1 = tree1.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
1103
Dim typePara2 = tree2.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of TypeParameterSyntax)().First()
Semantics\QueryExpressions_SemanticModel.vb (6)
3817
Dim node = DirectCast(tree.
GetCompilationUnitRoot
().FindToken(tree.
GetCompilationUnitRoot
().ToString().IndexOf("aggr4(4)", StringComparison.Ordinal)).Parent, FunctionAggregationSyntax)
3886
Dim node = tree.
GetCompilationUnitRoot
().FindToken(tree.
GetCompilationUnitRoot
().ToString().IndexOf("n As", StringComparison.Ordinal)).Parent.Parent.DescendantNodes().OfType(Of IdentifierNameSyntax)().First()
3918
Dim node = tree.
GetCompilationUnitRoot
().FindToken(tree.
GetCompilationUnitRoot
().ToString().IndexOf("By", StringComparison.Ordinal)).Parent.Parent.DescendantNodes().OfType(Of IdentifierNameSyntax)().First()
Semantics\SyncLockTests.vb (1)
487
Dim SyncLockBlock = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of SyncLockStatementSyntax)().ToList()
Semantics\SyntaxTreeRootTests.vb (1)
85
Dim _ignored = DirectCast(DirectCast(tree.
GetCompilationUnitRoot
(), [Object]), VisualBasicSyntaxTree)
Semantics\TypeOfTests.vb (1)
743
Dim typeOfExpressions = compilation.SyntaxTrees(0).
GetCompilationUnitRoot
().DescendantNodes.OfType(Of TypeOfExpressionSyntax).ToArray()
Semantics\UsingStatementTest.vb (4)
313
Dim usingStatements = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of UsingStatementSyntax)().ToList()
321
Dim usingStatements = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of UsingStatementSyntax)().ToList()
339
Dim usingStatements = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of UsingStatementSyntax)().ToList()
374
Dim usingStatements = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of UsingStatementSyntax)().ToList()
Semantics\WithBlockSemanticModelTests.vb (8)
37
Dim withExpression = DirectCast(tree.
GetCompilationUnitRoot
().DescendantNodes().Where(Function(n) n.Kind = SyntaxKind.SimpleMemberAccessExpression).First(), MemberAccessExpressionSyntax)
267
Dim withBlock = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of WithBlockSyntax)().Single()
317
Dim parameter = treeA.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().Where(Function(n) n.Identifier.ValueText = "parameter").First()
322
Dim withBlockB = treeB.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of WithBlockSyntax)().Single()
362
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().Where(Function(n) n.Identifier.ValueText = "vbNode").ToArray()
408
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().Where(Function(n) n.Identifier.ValueText = "vbNode").ToArray()
460
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().Where(Function(n) n.Identifier.ValueText = "vbNode").ToArray()
517
Dim nodes = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of IdentifierNameSyntax)().Where(Function(n) n.Identifier.ValueText = "vbNode").ToArray()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolDisplay\SymbolDisplayTests.vb (3)
5454
Dim methodDecl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().First()
5462
methodDecl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().First()
5482
Dim declarator = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of VariableDeclaratorSyntax)().Single()
SymbolsTests\CompilationCreationTests.vb (1)
2226
Dim types = expectedSyntaxTrees.Select(Function(tree) compilation.GetSemanticModel(tree).GetDeclaredSymbol(tree.
GetCompilationUnitRoot
().Members.Single())).ToArray()
SymbolsTests\Source\EnumTests.vb (1)
1209
Dim decl = tree.
GetCompilationUnitRoot
().DescendantNodes().OfType(Of EnumBlockSyntax).Single()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (21)
Parser\ParseAttributes.vb (1)
78
Dim root As CompilationUnitSyntax = tree.
GetCompilationUnitRoot
()
Parser\ParseDeclarationTests.vb (1)
994
Dim root = t.
GetCompilationUnitRoot
()
Syntax\ManualTests.vb (2)
91
Dim arrayRankSpecifier = DirectCast(node.
GetCompilationUnitRoot
().Members(0), FieldDeclarationSyntax).Declarators(0).Names(0).ArrayRankSpecifiers(0)
97
arrayRankSpecifier = DirectCast(node.
GetCompilationUnitRoot
().Members(0), FieldDeclarationSyntax).Declarators(0).Names(0).ArrayRankSpecifiers(0)
TestSyntaxNodes.vb (17)
3574
Dim root = tree.
GetCompilationUnitRoot
()
3597
Dim root = tree.
GetCompilationUnitRoot
()
3618
Dim root = tree.
GetCompilationUnitRoot
()
3642
Dim root = tree.
GetCompilationUnitRoot
()
3682
Dim root = tree.
GetCompilationUnitRoot
()
3718
Dim root = tree.
GetCompilationUnitRoot
()
3743
Dim root = tree.
GetCompilationUnitRoot
()
3767
Dim root = tree.
GetCompilationUnitRoot
()
3790
Dim root = tree.
GetCompilationUnitRoot
()
3828
Dim root = tree.
GetCompilationUnitRoot
()
3859
Dim root = tree.
GetCompilationUnitRoot
()
3882
Dim root = tree.
GetCompilationUnitRoot
()
3903
Dim root = tree.
GetCompilationUnitRoot
()
3928
Dim root = tree.
GetCompilationUnitRoot
()
3946
Dim root = tree.
GetCompilationUnitRoot
()
3966
Dim root = tree.
GetCompilationUnitRoot
()
3989
Dim root = tree.
GetCompilationUnitRoot
()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
26
Dim root = model.SyntaxTree.
GetCompilationUnitRoot
()
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
61
Dim compilationUnit = typeBlock.SyntaxTree.
GetCompilationUnitRoot
()
SemanticModelExtensions.vb (1)
181
Dim root = semanticModel.SyntaxTree.
GetCompilationUnitRoot
()
VisualBasicSemanticFacts.vb (1)
153
Dim root = original.SyntaxTree.
GetCompilationUnitRoot
()