8 references to TryGetSyntaxTree
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
306
if (documentState.
TryGetSyntaxTree
(out _))
Workspace\Solution\Document.cs (1)
88
if (!DocumentState.
TryGetSyntaxTree
(out syntaxTree))
Workspace\Solution\DocumentState.cs (1)
501
if (
TryGetSyntaxTree
(out var priorTree))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
769
if (documentState.
TryGetSyntaxTree
(out _))
787
if (documentState.
TryGetSyntaxTree
(out var alreadyParsedTree))
961
ThrowExceptionIfFalse(documentInProjectState.Value.
TryGetSyntaxTree
(out var tree), "We should have a tree since we have a compilation that should contain it.");
970
ThrowExceptionIfFalse(generatedDocument.Value.
TryGetSyntaxTree
(out var tree), "We should have a tree since we have a compilation that should contain it.");
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
31
if (document.
TryGetSyntaxTree
(out var documentTree) && documentTree == syntaxTree)