9 references to TryGetSyntaxTree
Microsoft.CodeAnalysis.Workspaces (9)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
308
if (documentState.
TryGetSyntaxTree
(out _))
Workspace\Solution\Document.cs (1)
87
if (!DocumentState.
TryGetSyntaxTree
(out syntaxTree))
Workspace\Solution\DocumentState.cs (1)
502
if (
TryGetSyntaxTree
(out var priorTree))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
779
if (documentState.
TryGetSyntaxTree
(out _))
797
if (documentState.
TryGetSyntaxTree
(out var alreadyParsedTree))
971
ThrowExceptionIfFalse(documentInProjectState.Value.
TryGetSyntaxTree
(out var tree), "We should have a tree since we have a compilation that should contain it.");
980
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)
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
195
if (this.
TryGetSyntaxTree
(out var tree) && tree == newRoot.SyntaxTree)