31 references to GetSourceGeneratedDocumentsAsync
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
456foreach (var generatedDocument in await document.Project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
626var document = isSourceGenerated ? (await project.GetSourceGeneratedDocumentsAsync(CancellationToken.None)).Single() : project.Documents.Single();
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorProjectExtensions.cs (1)
23var results = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (2)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
386foreach (var document in await project.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false))
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (1)
78var sourceGeneratedDocs = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
67var sourceGeneratedDoc = (await compileTimeSolution.Projects.Single().GetSourceGeneratedDocumentsAsync()).Single();
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
291var generatedDocument = (await solution.Projects.Single().GetSourceGeneratedDocumentsAsync()).Single(); 1115var generatedDocument = (await solution.Projects.Single().GetSourceGeneratedDocumentsAsync()).Single();
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
82var sourceGeneratedDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Project.cs (2)
194/// <see cref="GetSourceGeneratedDocumentsAsync(CancellationToken)"/>. 299foreach (var document in await GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces.UnitTests (16)
SolutionTests\SolutionTests.cs (1)
5745var generatedDocuments = await project1.GetSourceGeneratedDocumentsAsync();
SolutionTests\SolutionWithSourceGeneratorTests.cs (15)
72var generatedDocument = Assert.Single(await project.GetSourceGeneratedDocumentsAsync()); 370var generatedDocumentBeforeChange = Assert.Single(await projectBeforeChange.GetSourceGeneratedDocumentsAsync()); 377var generatedDocumentAfterChange = Assert.Single(await projectAfterChange.GetSourceGeneratedDocumentsAsync()); 486var generatedTreeBeforeChange = await Assert.Single(await project.GetSourceGeneratedDocumentsAsync()).GetSyntaxTreeAsync(); 491var generatedTreeAfterChange = await Assert.Single(await project.GetSourceGeneratedDocumentsAsync()).GetSyntaxTreeAsync(); 506var generatedTreeBeforeChange = await Assert.Single(await project.GetSourceGeneratedDocumentsAsync()).GetSyntaxTreeAsync(); 512var generatedTreeAfterChange = await Assert.Single(await project.GetSourceGeneratedDocumentsAsync()).GetSyntaxTreeAsync(); 578Assert.Empty(await project.GetSourceGeneratedDocumentsAsync()); 594var generatedDocument = Assert.Single(await project.GetSourceGeneratedDocumentsAsync()); 618var generatedDocument = Assert.Single(await workspace.CurrentSolution.Projects.Single().GetSourceGeneratedDocumentsAsync()); 638var generatedDocument = Assert.Single(await originalAdditionalFile.Project.GetSourceGeneratedDocumentsAsync()); 645Assert.Empty(await workspace.CurrentSolution.Projects.Single().GetSourceGeneratedDocumentsAsync()); 696var generatedDocument = Assert.Single(await project.GetSourceGeneratedDocumentsAsync()); 873var sourceGeneratedDocument = Assert.Single(await project.GetSourceGeneratedDocumentsAsync()); 931var sourceGeneratedDocument = Assert.Single(await project.GetSourceGeneratedDocumentsAsync());
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
SolutionExplorer\SourceGeneratorItemTests.vb (1)
90Dim sourceGeneratedDocument = Assert.Single(Await workspace.CurrentSolution.GetProject(projectId).GetSourceGeneratedDocumentsAsync())
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests.cs (2)
473var localGeneratedDocs = (await localProject.GetSourceGeneratedDocumentsAsync()).ToImmutableArray(); 474var remoteGeneratedDocs = (await remoteProject.GetSourceGeneratedDocumentsAsync()).ToImmutableArray();
Services\SolutionServiceTests.cs (1)
521var documentIdentity = (await solution.Projects.Single().GetSourceGeneratedDocumentsAsync()).First().Identity;