10 references to TryGetCompilation
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (2)
63if (sourceProject.TryGetCompilation(out var compilation) && 81if (project?.TryGetCompilation(out var projectCompilation) is true)
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
230if (otherProject.TryGetCompilation(out var compilation))
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
206Contract.ThrowIfFalse(project.TryGetCompilation(out var compilation2));
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
399if (project.TryGetCompilation(out var compilation))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (2)
63if (sourceProject.TryGetCompilation(out var compilation) && 81if (project?.TryGetCompilation(out var projectCompilation) is true)
Workspace\Solution\Document.cs (1)
535if (!forceFreeze && this.Project.TryGetCompilation(out _))
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (1)
134/// <see cref="Project.GetCompilationAsync"/> or <see cref="Project.TryGetCompilation"/> must be from a <see
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
581Assert.False(project.TryGetCompilation(out _));