5 references to TryGetRoot
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\SyntaxTreeRootTests.cs (1)
52Assert.True(tree.TryGetRoot(out root));
SourceGeneration\GeneratorDriverTests.cs (2)
1144Assert.False(tree.TryGetRoot(out _)); 1147Assert.True(tree.TryGetRoot(out var rootFromTryGetRoot));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\SyntaxTreeRootTests.vb (1)
37Assert.Equal(True, tree.TryGetRoot(root))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Document.cs (1)
216return this.TryGetSyntaxTree(out var tree) && tree.TryGetRoot(out root) && root != null;