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