src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
51_document.Project.Solution,
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
45fixAllContext.Project.Solution,
FindUsages\AbstractFindUsagesService_FindReferences.cs (5)
31document.Project.Solution, definitionTrackingContext.GetDefinitions(), cancellationToken).ConfigureAwait(false);
132var solution = project.Solution;
165project.Solution, symbol, context, searchOptions, classificationOptions);
167symbol, project.Solution, progress, documents: null, searchOptions, cancellationToken);
221var solution = document.Project.Solution;
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
51_document.Project.Solution,
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
45fixAllContext.Project.Solution,
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (3)
39=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
45=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
51=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (3)
47=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
53=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
59=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
Remote\RemoteServiceConnection.cs (4)
82=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
88=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
132=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
138=> TryInvokeAsync(project.Solution.CompilationState, project.Id, invocation, cancellationToken);
Workspace\Solution\Document.cs (11)
333this.Project.Solution.OnSemanticModelObtained(this.Id, semanticModel);
386=> this.Project.Solution.WithDocumentSourceCodeKind(this.Id, kind).GetRequiredDocument(Id);
392=> this.Project.Solution.WithDocumentText(this.Id, text, PreservationMode.PreserveIdentity).GetRequiredDocument(Id);
398=> this.Project.Solution.WithDocumentSyntaxRoot(this.Id, root, PreservationMode.PreserveIdentity).GetRequiredDocument(Id);
404=> this.Project.Solution.WithDocumentName(this.Id, name).GetRequiredDocument(Id);
410=> this.Project.Solution.WithDocumentFolders(this.Id, folders).GetRequiredDocument(Id);
416=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetRequiredDocument(Id);
486var filteredDocumentIds = this.Project.Solution.GetRelatedDocumentIds(this.Id);
519var solution = this.Project.Solution;
528var newSolution = this.Project.Solution.WithFrozenPartialCompilationIncludingSpecificDocument(this.Id, cancellationToken);
555InitializeCachedOptions(Project.Solution.Options);
Workspace\Solution\Project.cs (49)
24/// Represents a project that is part of a <see cref="Solution"/>.
134public IEnumerable<ProjectReference> ProjectReferences => State.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
230=> Solution.GetDocumentId(syntaxTree, this.Id);
236=> Solution.GetDocument(syntaxTree, this.Id);
287var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(this.State, cancellationToken).ConfigureAwait(false);
319var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(State, cancellationToken).ConfigureAwait(false);
355var documentState = Solution.CompilationState.TryGetSourceGeneratedDocumentStateForAlreadyGeneratedId(documentId);
364return Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(this.State, cancellationToken);
369return Solution.CompilationState.GetSourceGeneratorRunResultAsync(this.State, cancellationToken);
483=> Solution.CompilationState.TryGetCompilation(this.Id, out compilation);
494=> Solution.CompilationState.GetCompilationAsync(State, cancellationToken);
501=> Solution.CompilationState.HasSuccessfullyLoadedAsync(State, cancellationToken);
531=> Solution.CompilationState.GetDependentVersionAsync(this.Id, cancellationToken);
538=> Solution.CompilationState.GetDependentSemanticVersionAsync(this.Id, cancellationToken);
573=> Solution.CompilationState.GetDependentChecksumAsync(this.Id, cancellationToken);
579=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
585=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id);
588=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id);
591=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id);
594=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id);
600=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id);
606=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id);
613=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id);
620=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
626=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id);
633=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
640=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
647=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
653=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
660=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
667=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
674=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id);
680=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
687=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id);
694=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id);
705return this.Solution.AddDocument(id, name, syntaxRoot, folders, filePath, preservationMode: PreservationMode.PreserveIdentity).GetDocument(id)!;
714return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
723return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
732return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
741return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
750return this.Solution.AddAnalyzerConfigDocument(id, name, text, folders, filePath).GetAnalyzerConfigDocument(id)!;
760return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id);
770return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
779=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id);
788return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id);
797=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id);
806return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
828=> Solution.FallbackAnalyzerOptions.GetValueOrDefault(Language, StructuredAnalyzerConfigOptions.Empty);
834=> Solution.SolutionState.Analyzers.GetSkippedAnalyzersInfo(this, infoCache);