481 references to GetCompilationAsync
AnalyzerRunner (4)
DiagnosticAnalyzerRunner.cs (3)
100_ = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 185var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 393var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Program.cs (1)
150var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
IdeCoreBenchmarks (4)
FindReferencesBenchmarks.cs (1)
96var compilation = await project.GetCompilationAsync();
IncrementalSourceGeneratorBenchmarks.cs (1)
149var compilation = await project.GetCompilationAsync();
RenameBenchmarks.cs (1)
48var compilation = project.GetCompilationAsync().Result;
SwitchStatementBenchmarks.cs (1)
75var compilation = project.GetCompilationAsync().Result;
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
268var comp = (await proj.GetCompilationAsync(cancellationToken).ConfigureAwait(false))!;
Microsoft.Analyzers.Extra.Tests (5)
Resources\RoslynTestUtils.cs (5)
191var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 219var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 259var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 333var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 540var comp = await _project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Analyzers.Local.Tests (5)
Resources\RoslynTestUtils.cs (5)
191var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 219var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 259var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 334var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 541var comp = await _project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Analyzer.Testing (3)
CodeFixRunner.cs (1)
50.GetCompilationAsync();
DiagnosticAnalyzerRunner.cs (1)
62var compilation = await project.GetCompilationAsync();
DiagnosticVerifier.cs (1)
82var compilation = await project.GetCompilationAsync();
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
AnalyzerTestBase.cs (1)
44return CreateProject(source).GetCompilationAsync();
Helpers\DiagnosticVerifier.Helper.cs (1)
62var compilationWithAnalyzers = project.GetCompilationAsync().Result.WithAnalyzers(ImmutableArray.Create(analyzer));
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
AnalyzerTestBase.cs (1)
44return CreateProject(source).GetCompilationAsync();
Helpers\DiagnosticVerifier.Helper.cs (1)
62var compilationWithAnalyzers = project.GetCompilationAsync().Result.WithAnalyzers(ImmutableArray.Create(analyzer));
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\CompileTimeCreationTests.cs (8)
58var compilation = await project.GetCompilationAsync(); 84var compilation = await project.GetCompilationAsync(); 166var compilation = await project.GetCompilationAsync(); 233var compilation = await project.GetCompilationAsync(); 287var compilation = await project.GetCompilationAsync(); 334var compilation = await project.GetCompilationAsync(); 670var compilation = await project.GetCompilationAsync(); 727var compilation = await project.GetCompilationAsync();
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
308return project.GetCompilationAsync();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestDelegateGeneratorBenchmarks.cs (1)
33_compilation = await project.GetCompilationAsync();
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
308return project.GetCompilationAsync();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
112var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (18)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (1)
3185var compilation = await workspace.CurrentSolution.Projects.First(p => p.Name == "P3").GetCompilationAsync();
SymbolKey\SymbolKeyTests.cs (8)
46var compilation = await project.GetCompilationAsync(); 81var compilation = await project.GetCompilationAsync(); 120var compilation = await project.GetCompilationAsync(); 166var compilation = await project.GetCompilationAsync(); 260bodyCompilation = await bodyProject.GetCompilationAsync(); 261referenceCompilation = await referenceProject.GetCompilationAsync(); 265referenceCompilation = await referenceProject.GetCompilationAsync(); 266bodyCompilation = await bodyProject.GetCompilationAsync();
Workspaces\WorkspaceTests_EditorFeatures.cs (9)
414var compilation = await snapshot.GetProject(id1).GetCompilationAsync(); 437var compilation2 = await snapshot.GetProject(id2).GetCompilationAsync(); 465var compilation2 = await snapshot.GetProject(id2).GetCompilationAsync(); 498var compilation2 = await solutionY.GetProject(id2).GetCompilationAsync(); 517var compilation2Z = await solutionZ.GetProject(id2).GetCompilationAsync(); 552var compilation2y = await solutionY.GetProject(id2).GetCompilationAsync(); 620var compilation2y = await solutionY.GetProject(id2).GetCompilationAsync(); 651var compilation2Z = await partialDoc2Z.Project.GetCompilationAsync(); 672var compilation2Z = await doc2Z.Project.GetCompilationAsync();
Microsoft.CodeAnalysis.CSharp.Features (2)
AddImport\CSharpAddImportFeatureService.cs (1)
392var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
71var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SymbolEditorTests.cs (4)
50var compilation = await solution.Projects.First().GetCompilationAsync(); 192var comp = await solution.Projects.First().GetCompilationAsync(); 238var comp = await solution.Projects.First().GetCompilationAsync(); 316var comp = await solution.Projects.First().GetCompilationAsync();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (122)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (2)
88references.Add(MetadataReference.CreateFromImage((await metadataProject.GetCompilationAsync()).EmitToArray())); 111var generatedCompilation = await generatedDocument.Project.GetCompilationAsync();
MetadataAsSource\MetadataAsSourceTests.cs (1)
1714var compilation = await context.DefaultProject.GetCompilationAsync();
SymbolFinder\DependentTypeFinderTests.cs (27)
75var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 78var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 116var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 119var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 167var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 170var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 208var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 211var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 250var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 253var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 292var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 295var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 333var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 336var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 374var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 377var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 414var portableCompilation = await GetPortableProject(solution).GetCompilationAsync(); 417var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 438var compilation = await GetNormalProject(solution).GetCompilationAsync(); 483var compilation = await GetNormalProject(solution).GetCompilationAsync(); 535var compilation = await GetNormalProject(solution).GetCompilationAsync(); 572var compilation = await GetNormalProject(solution).GetCompilationAsync(); 602var compilation = await GetNormalProject(solution).GetCompilationAsync(); 700var compilation = await normalProject1.GetCompilationAsync(); 754var compilation1 = await solution.Projects.Single(p => p.Name == "PortableProject1").GetCompilationAsync(); 755var compilation2 = await solution.Projects.Single(p => p.Name == "PortableProject2").GetCompilationAsync(); 787var portableCompilation = await GetPortableProject(solution).GetCompilationAsync();
Utilities\SymbolEquivalenceComparerTests.cs (92)
52var type = (ITypeSymbol)(await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 124var csharpType = (ITypeSymbol)(await csharpWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 125var vbType = (await vbWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 194var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 195var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 196var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 197var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 245var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 246var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 247var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 248var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 284var typeC = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 285var typeD = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("D").Single(); 328var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 329var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 353var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 354var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 378var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 379var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 403var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 404var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 428var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 429var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 455var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 456var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 482var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 483var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 509var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 510var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 534var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 535var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 559var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 560var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 586var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 587var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 620var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 621var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 665var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 666var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 696var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 722var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 723var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 757var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 758var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 790var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 791var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 825var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 826var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 856var outer1 = (INamespaceSymbol)(await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 857var outer2 = (INamespaceSymbol)(await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 933var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 934var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 935var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 936var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 970var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 971var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 995var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 996var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1020var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1021var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1051var outer = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Outer").Single(); 1052var other = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Other").Single(); 1081var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1082var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1112var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1113var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1152var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1153var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1182var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1183var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1212var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1213var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1243var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1244var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1274var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1275var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1306var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1307var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1343var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1344var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1407var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1408var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1470var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1471var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1533var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1534var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1621var comp1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()); 1622var comp2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()); 1695var comp1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()); 1696var comp2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()); 1718var namespace1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetNamespaceMembers().Single(n => n.Name == "N").GetNamespaceMembers().Single(n => n.Name == "M"); 1719var namespace2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetNamespaceMembers().Single(n => n.Name == "N").GetNamespaceMembers().Single(n => n.Name == "M");
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\DefinitionPeekableItem.cs (1)
75var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (9)
Compilation\CompilationTests.vb (2)
33Assert.Null(Await project.GetCompilationAsync()) 35Assert.Null(Await project.GetCompilationAsync())
Workspaces\TryFindSourceDefinitionTests.vb (7)
58Dim Type = (Await GetProject(snapshot, "CSharpAssembly").GetCompilationAsync()).GlobalNamespace.GetTypeMembers("CSClass").Single() 102Dim Type = (Await GetProject(snapshot, "VBAssembly").GetCompilationAsync()).GlobalNamespace.GetTypeMembers("VBClass").Single() 141Dim compilation = Await GetProject(workspace.CurrentSolution, "VBAssembly").GetCompilationAsync() 178Dim compilation = Await GetProject(workspace.CurrentSolution, "VBAssembly").GetCompilationAsync() 215Dim compilation = Await GetProject(workspace.CurrentSolution, "VBAssembly").GetCompilationAsync() 249Dim retargetedCompilation = Await GetProject(workspace.CurrentSolution, "CSharpAssembly").GetCompilationAsync() 251Dim retargetingCompilation = Await GetProject(workspace.CurrentSolution, "CSharpAssembly2").GetCompilationAsync()
Microsoft.CodeAnalysis.Features (18)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (2)
179var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 200var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (3)
78var compilation = await currentProject.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 106var compilation = await currentProject.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 176var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
32var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
286var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (2)
957var oldCompilation = await oldProject.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 995var newCompilation = await newProject.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (2)
42var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false); 64var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
377var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
308var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackFrameLocalMethodResolver.cs (1)
30var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
SymbolMapping\SymbolMappingServiceFactory.cs (1)
26var compilation = await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
81var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Tagging\CompilationAvailableHelpers.cs (1)
16=> s_shouldSkipComputation ? Task.CompletedTask : project.GetCompilationAsync(cancellationToken);
UnusedReferences\UnusedReferencesRemover.cs (1)
38var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueTestVerifier.cs (2)
249EditSession.MergePartialEdits(oldProject.GetCompilationAsync().Result!, newProject.GetCompilationAsync().Result!, allEdits, out var mergedEdits, out _, CancellationToken.None);
Microsoft.CodeAnalysis.Features.UnitTests (29)
FindUsages\DefinitionItemFactoryTests.cs (29)
132var compilation = await project.GetCompilationAsync(); 168var compilation = await project.GetCompilationAsync(); 210var compilation = await project.GetCompilationAsync(); 246var compilation = await project.GetCompilationAsync(); 288var compilation = await project.GetCompilationAsync(); 330var compilation = await project.GetCompilationAsync(); 383var compilation = await project.GetCompilationAsync(); 437var compilation = await project.GetCompilationAsync(); 477var compilation = await project.GetCompilationAsync(); 517var compilation = await project.GetCompilationAsync(); 559var compilation = await project.GetCompilationAsync(); 617var compilation = await project.GetCompilationAsync(); 663var compilation = await project.GetCompilationAsync(); 700var compilation = await project.GetCompilationAsync(); 762var compilation = await project.GetCompilationAsync(); 818var compilation = await project.GetCompilationAsync(); 872var compilation = await project.GetCompilationAsync(); 932var compilation = await project.GetCompilationAsync(); 977var compilation = await project.GetCompilationAsync(); 1032var compilation = await project.GetCompilationAsync(); 1084var compilation = await project.GetCompilationAsync(); 1146var compilation = await project.GetCompilationAsync(); 1203var compilation = await project.GetCompilationAsync(); 1260var compilation = await project.GetCompilationAsync(); 1337var compilation = await project.GetCompilationAsync(); 1397var compilation = await project.GetCompilationAsync(); 1448var compilation = await project.GetCompilationAsync(); 1512var compilation = await project.GetCompilationAsync(); 1583var compilation = await project.GetCompilationAsync();
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
139var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (6)
LineCommit\CommitBufferManager.vb (2)
308Dim compilation = Await project.GetCompilationAsync(cancellationToken).ConfigureAwait(False) 313Dim refCompilation = Await refProject.GetCompilationAsync(cancellationToken).ConfigureAwait(False)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (4)
114Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False) 158Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False) 213Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False) 257Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
AddImport\VisualBasicAddImportFeatureService.vb (1)
295Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False)
Debugging\LocationInfoGetter.vb (1)
33Dim compilation = Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False)
SignatureHelp\PredefinedCastExpressionSignatureHelpProvider.vb (1)
27Return SpecializedCollections.SingletonEnumerable(New PredefinedCastExpressionDocumentation(node.Keyword.Kind, Await document.Project.GetCompilationAsync(cancellationToken).ConfigureAwait(False)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
FindSymbols\VisualBasicReferenceFinder.vb (2)
40Dim compilation = Await project.GetCompilationAsync(cancellationToken).ConfigureAwait(False) 53Dim compilation = Await project.GetCompilationAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (9)
Editing\SymbolEditor.cs (1)
153var comp = await solution.GetProject(projectId).GetCompilationAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
121var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Shared\Extensions\ISolutionExtensions.cs (1)
29var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
112var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Project.cs (4)
91/// <see cref="GetCompilationAsync(CancellationToken)"/> method. 93/// If <see langword="false"/> then <see cref="GetCompilationAsync(CancellationToken)"/> method will return <see langword="null"/> instead. 479/// cases you should call <see cref="GetCompilationAsync"/> which will either return the cached <see cref="Compilation"/> 497/// Determines if the compilation returned by <see cref="GetCompilationAsync"/> and all its referenced compilation are from fully loaded projects.
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.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
638var compilation = project.GetCompilationAsync(CancellationToken.None).WaitAndGetResult_CanCallOnBackground(CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (35)
MSBuildWorkspaceTestBase.cs (1)
126var c1 = await p1.GetCompilationAsync();
NetCoreTests.cs (2)
423var compilation = await project.GetCompilationAsync(); 511var compilation = await project.GetCompilationAsync();
VisualStudioMSBuildWorkspaceTests.cs (32)
87var compilation = await vbProject.GetCompilationAsync(); 227var compilation1 = await projects[0].GetCompilationAsync(); 228var compilation2 = await projects[1].GetCompilationAsync(); 321var c2 = await p2.GetCompilationAsync(); 348var c2 = await p2.GetCompilationAsync(); 373var compilation = await project2.GetCompilationAsync(); 491var compilation = await project.GetCompilationAsync(); 506var compilation = await project.GetCompilationAsync(); 520var compilation = await project.GetCompilationAsync(); 535var compilation = await project.GetCompilationAsync(); 550var compilation = await project.GetCompilationAsync(); 615var compilation = await project.GetCompilationAsync(); 630var compilation = await project.GetCompilationAsync(); 644var compilation = await project.GetCompilationAsync(); 659var compilation = await project.GetCompilationAsync(); 674var compilation = await project.GetCompilationAsync(); 807var comp = await project.GetCompilationAsync(); 825var comp = await project.GetCompilationAsync(); 1468var compilation = await project.GetCompilationAsync(); 1900var compilation = await project.GetCompilationAsync(); 1923var compilation = await project.GetCompilationAsync(); 1947var compilation = await project.GetCompilationAsync(); 1970var compilation = await project.GetCompilationAsync(); 2307var comp = await proj.GetCompilationAsync(); 2412var comp = await proj.GetCompilationAsync(); 2429var comp = await proj.GetCompilationAsync(); 2536var comp = await project.GetCompilationAsync(); 2554var comp = await project.GetCompilationAsync(); 2572var comp = await project.GetCompilationAsync(); 2590var cscomp = await csproject.GetCompilationAsync(); 2598var vbcomp = await vbproject.GetCompilationAsync(); 3221var compilation = await project.GetCompilationAsync();
Microsoft.CodeAnalysis.Workspaces.UnitTests (110)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
48var compilation = await project.GetCompilationAsync();
FindAllDeclarationsTests.cs (1)
185var expectedSymbol = (await solution.GetProject(submission0Id).GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").SingleOrDefault().GetMembers("Inner").SingleOrDefault();
FindReferencesTests.cs (14)
104var symbol = (await project.GetCompilationAsync()).GetTypeByMetadataName("C").GetMembers("X").First(); 129var symbol = (IFieldSymbol)(await project.GetCompilationAsync()).GetTypeByMetadataName("C").GetMembers("X").First(); 179var comp = await prj.GetCompilationAsync(); 218var comp = await prj.GetCompilationAsync(); 282var comp = await prj.GetCompilationAsync(); 324var comp = await project.GetCompilationAsync(); 391var interfaceMethod = (IMethodSymbol)(await netStandardProject.GetCompilationAsync()).GetTypeByMetadataName("N.I").GetMembers("Get").First(); 436var compilation = await project.GetCompilationAsync(); 479var portableCompilation = await solution.Projects.Single(p => p.Name == "PortableProject").GetCompilationAsync(); 483var normalCompilation = await solution.Projects.Single(p => p.Name == "NormalProject").GetCompilationAsync(); 514var comp = await project.GetCompilationAsync(); 541var compilation = await project.GetCompilationAsync(); 574var compilation = await project.GetCompilationAsync(); 616var compilation = await project.GetCompilationAsync();
SolutionTests\SolutionTests.cs (77)
337var compilation = (await project.GetCompilationAsync())!; 2699Assert.Empty((await finalProject.GetCompilationAsync()).SyntaxTrees); 2844var compilation = await project.GetCompilationAsync(); 2934await solution.GetProject(projectIds[0]).GetCompilationAsync(CancellationToken.None); 2935await solution.GetProject(projectIds[2]).GetCompilationAsync(CancellationToken.None); 2949var assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference); 2956assemblyReference = (IAssemblySymbol)solution.GetProject(project1).GetCompilationAsync().Result.GetAssemblyOrModuleSymbol(mefReference); 3482var compilation = proj.GetCompilationAsync().Result; 3731var observed = solution.GetProject(projectId).GetCompilationAsync().Result; 3756var observed = solution.GetProject(projectId).GetCompilationAsync().Result; 3924var compilation = await doc.Project.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 3972var comp3 = project3.GetCompilationAsync().Result; 3980comp3 = project3.GetCompilationAsync().Result; 4009Assert.Empty(project.GetCompilationAsync().Result.ExternalReferences); 4037Assert.Equal(2, project2.GetCompilationAsync().Result.ExternalReferences.Length); 4066Assert.Single(project2.GetCompilationAsync().Result.ExternalReferences); 4081var tree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4106var tree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4131var compilation = await project.GetCompilationAsync(); 4176var compilation = await project.GetCompilationAsync(); 4253var originalCompilation = await project.GetCompilationAsync(); 4275var singleTree = Assert.Single((await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4287var originalCompilation = await originalProject.GetCompilationAsync(); 4298var frozenCompilation = await frozenDocument.Project.GetCompilationAsync(); 4311var originalCompilation = await originalProject.GetCompilationAsync(); 4326var frozenCompilation = await frozenDocument.Project.GetCompilationAsync(); 4339var originalCompilation = await document.Project.GetCompilationAsync(); 4344Assert.Contains(await frozenDocument.GetSyntaxTreeAsync(), (await frozenDocument.Project.GetCompilationAsync()).SyntaxTrees); 4363var originalCompilation = await solution.Projects.Single().GetCompilationAsync(); 4570return solution.GetProject(pid).GetCompilationAsync().Result.SyntaxTrees.ToImmutableArray(); 4680var originalCompilation = await solution.GetProject(projectId).GetCompilationAsync(); 4692var newCompilation = await project.GetCompilationAsync(); 4739var finalCompilation = await project.GetCompilationAsync(); 4768Assert.Equal(provider, (await project.GetCompilationAsync()).Options.SyntaxTreeOptionsProvider); 4781Assert.Equal(provider, (await project.GetCompilationAsync()).Options.SyntaxTreeOptionsProvider); 4785var finalCompilation = await project.GetCompilationAsync(); 4843var originalCompilation = await solution.GetProject(projectId).GetCompilationAsync(); 4859var newCompilation = await solution.GetProject(projectId).GetCompilationAsync(); 4972var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 4973var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 4998var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 4999var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 5026var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5027var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 5043var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5055var compilation1New = await solution.GetProject(projectId1).GetCompilationAsync(); 5073var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5086var compilation1New = await solution.GetProject(projectId1).GetCompilationAsync(); 5105var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5118var compilation1New = await solution.GetProject(projectId1).GetCompilationAsync(); 5123var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 5124var compilation3 = await solution.GetProject(projectId2).GetCompilationAsync(); 5170var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5171var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 5172var compilation3 = await solution.GetProject(projectId2).GetCompilationAsync(); 5187var compilation1New = await solution.Projects.Single().GetCompilationAsync(); 5215var compilation1 = await solution.GetProject(projectId1).GetCompilationAsync(); 5216var compilation2 = await solution.GetProject(projectId2).GetCompilationAsync(); 5217var compilation3 = await solution.GetProject(projectId2).GetCompilationAsync(); 5231var compilation1New = await solution.Projects.Single().GetCompilationAsync(); 5465var originalCompilation = await solution.Projects.Single().GetCompilationAsync(); 5586var frozenCompilation = await frozenProject.GetCompilationAsync(); 5597await project.GetCompilationAsync(); 5605var frozenCompilation = await frozenProject.GetCompilationAsync(); 5621await project1.GetCompilationAsync(); 5630var frozenCompilation1 = await frozenProject1.GetCompilationAsync(); 5634var frozenCompilation2 = await frozenProject2.GetCompilationAsync(); 5651await project1.GetCompilationAsync(); 5657var frozenCompilation1 = await frozenProject1.GetCompilationAsync(); 5664var frozenCompilation2 = await frozenProject2.GetCompilationAsync(); 5681await project2.GetCompilationAsync(); 5687var frozenCompilation1 = await frozenProject1.GetCompilationAsync(); 5694var frozenCompilation2 = await frozenProject2.GetCompilationAsync(); 5710var compilation1 = await project1.GetCompilationAsync(); 5721var forkedCompilation1 = await forkedProject1.GetCompilationAsync(); 5743var compilation1 = await project1.GetCompilationAsync(); 5790var frozenCompilation = await frozenProject.GetCompilationAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
464await project.GetCompilationAsync(); 533_ = await project.GetCompilationAsync(); 755var objectReference = await project.GetCompilationAsync(); 784var objectReference = await project.GetCompilationAsync(); 856_ = await project.GetCompilationAsync();
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
34_ = await project.GetCompilationAsync();
WorkspaceTests\AdhocWorkspaceTests.cs (1)
383var comp = await proj.GetCompilationAsync();
WorkspaceTests\WorkspaceReferenceTests.cs (10)
32var compilation1 = await project.GetCompilationAsync(); 40var compilation2 = await document.Project.GetCompilationAsync(); 72var compilation1 = await project.GetCompilationAsync(); 80var compilation2 = await document.Project.GetCompilationAsync(); 112var compilation1 = await project.GetCompilationAsync(); 120var compilation2 = await document.Project.GetCompilationAsync(); 152var compilation1 = await project.GetCompilationAsync(); 164var compilation2 = await document.Project.GetCompilationAsync(); 185var compilation1 = await project.GetCompilationAsync(); 194var compilation2 = await forkedProject.GetCompilationAsync();
Microsoft.Gen.ComplianceReports.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (5)
276var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 320Compilation? comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 369var comp = await proj.GetCompilationAsync().ConfigureAwait(false); 409var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 473var comp = await proj!.GetCompilationAsync().ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (5)
276var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 320Compilation? comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 369var comp = await proj.GetCompilationAsync().ConfigureAwait(false); 409var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 473var comp = await proj!.GetCompilationAsync().ConfigureAwait(false);
Microsoft.Gen.Logging.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (5)
276var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 320Compilation? comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 369var comp = await proj.GetCompilationAsync().ConfigureAwait(false); 409var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 473var comp = await proj!.GetCompilationAsync().ConfigureAwait(false);
Microsoft.Gen.Metrics.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (5)
276var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 320Compilation? comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 369var comp = await proj.GetCompilationAsync().ConfigureAwait(false); 409var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 473var comp = await proj!.GetCompilationAsync().ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (5)
test\Generators\Shared\RoslynTestUtils.cs (5)
276var comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 320Compilation? comp = await proj!.GetCompilationAsync(CancellationToken.None).ConfigureAwait(false); 369var comp = await proj.GetCompilationAsync().ConfigureAwait(false); 409var comp = await proj!.GetCompilationAsync().ConfigureAwait(false); 473var comp = await proj!.GetCompilationAsync().ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (26)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
101var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
DebuggerIntelliSense\AbstractDebuggerIntelliSenseContext.cs (1)
188document.Project.GetCompilationAsync(System.Threading.CancellationToken.None);
Interactive\VsResetInteractive.cs (1)
308var compilation = await document.Project.GetCompilationAsync().ConfigureAwait(true);
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
43.GetCompilationAsync(CancellationToken.None)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
484.GetCompilationAsync(cancellationToken) 512.GetCompilationAsync(cancellationToken)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
207.GetCompilationAsync(CancellationToken.None) 541var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Library\ObjectBrowser\ObjectList.cs (2)
681.GetCompilationAsync(CancellationToken.None) 752var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Library\ObjectBrowser\ObjectListItem.cs (1)
81.GetCompilationAsync(CancellationToken.None)
Progression\GraphNodeIdCreation.cs (1)
425var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
PullMemberUp\SymbolDependentsBuilder.cs (1)
60var compilation = await _project.GetCompilationAsync(_cancellationToken).ConfigureAwait(false);
Venus\ContainedLanguageCodeSupport.cs (12)
47var type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(className); 60var type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(className); 90var compilation = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 158var thisCompilation = thisDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 194returnType: targetDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSpecialType(SpecialType.System_Void), 261var type = thisDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(className); 294var type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(className); 296var compilation = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken); 417return document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(fullyQualifiedName); 423var type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetTypeByMetadataName(typeName); 429var ns = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GlobalNamespace; 481var compilation = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken);
Workspace\VisualStudioSymbolNavigationService.cs (1)
106var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
GoToDefinition\GoToDefinitionApiTests.vb (1)
38Dim compilation = Await project.GetCompilationAsync()
VsNavInfo\VsNavInfoTests.vb (2)
838Dim compilation = Await project.GetCompilationAsync() 876Dim compilation = Await project.GetCompilationAsync()
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
ProjectSystemShim\VisualBasicProject.vb (1)
202Dim compilation = project.GetCompilationAsync(CancellationToken.None).WaitAndGetResult(CancellationToken.None)
Snippets\VisualBasicSnippetExpansionLanguageHelper.vb (1)
104Dim compilation = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult(cancellationToken)
Venus\ContainedLanguageStaticEventBinding.vb (3)
27Dim type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult(cancellationToken).GetTypeByMetadataName(className) 64Dim type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult(cancellationToken).GetTypeByMetadataName(className) 92Dim type = document.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult(cancellationToken).GetTypeByMetadataName(className)
Mvc.Api.Analyzers.Test (8)
ActualApiResponseMetadataFactoryTest.cs (3)
70var compilation = await project.GetCompilationAsync(); 406var compilation = await project.GetCompilationAsync(); 427return project.GetCompilationAsync();
ApiControllerFactsTest.cs (2)
35var compilation = await project.GetCompilationAsync(); 131return project.GetCompilationAsync();
MvcFactsTest.cs (1)
225return project.GetCompilationAsync();
SymbolApiConventionMatcherTest.cs (1)
558return project.GetCompilationAsync();
SymbolApiResponseMetadataProviderTest.cs (1)
479return project.GetCompilationAsync();
Roslyn.VisualStudio.Next.UnitTests (4)
Services\ServiceHubServicesTests.cs (1)
459var localCompilation = await localProject.GetCompilationAsync();
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
164(await project.GetCompilationAsync()).WithAnalyzers( 202(await project.GetCompilationAsync()).WithAnalyzers(analyzers, project.AnalyzerOptions), 235var compilationWithAnalyzers = (await project.GetCompilationAsync()).WithAnalyzers(