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