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);
222var solution = 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)
332this.Project.Solution.OnSemanticModelObtained(this.Id, semanticModel);
385=> this.Project.Solution.WithDocumentSourceCodeKind(this.Id, kind).GetRequiredDocument(Id);
392var solution = this.Project.Solution.WithDocumentText(this.Id, text, PreservationMode.PreserveIdentity);
408var solution = this.Project.Solution.WithDocumentSyntaxRoot(this.Id, root, PreservationMode.PreserveIdentity);
423=> this.Project.Solution.WithDocumentName(this.Id, name).GetRequiredDocument(Id);
429=> this.Project.Solution.WithDocumentFolders(this.Id, folders).GetRequiredDocument(Id);
435=> this.Project.Solution.WithDocumentFilePath(this.Id, filePath).GetRequiredDocument(Id);
524var filteredDocumentIds = this.Project.Solution.GetRelatedDocumentIds(this.Id);
557var solution = this.Project.Solution;
566var newSolution = this.Project.Solution.WithFrozenPartialCompilationIncludingSpecificDocument(this.Id, cancellationToken);
593InitializeCachedOptions(Project.Solution.Options);
Workspace\Solution\Project.cs (47)
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);
354var documentState = Solution.CompilationState.TryGetSourceGeneratedDocumentStateForAlreadyGeneratedId(documentId);
363return Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(this.State, cancellationToken);
368return Solution.CompilationState.GetSourceGeneratorRunResultAsync(this.State, cancellationToken);
482=> Solution.CompilationState.TryGetCompilation(this.Id, out compilation);
493=> Solution.CompilationState.GetCompilationAsync(State, cancellationToken);
500=> Solution.CompilationState.HasSuccessfullyLoadedAsync(State, cancellationToken);
530=> Solution.CompilationState.GetDependentVersionAsync(this.Id, cancellationToken);
537=> Solution.CompilationState.GetDependentSemanticVersionAsync(this.Id, cancellationToken);
550=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
556=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id);
559=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id);
562=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id);
565=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id);
571=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id);
577=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id);
584=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id);
591=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
597=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id);
604=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
611=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
618=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
624=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
631=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
638=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
645=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id);
651=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
658=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id);
665=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id);
676return this.Solution.AddDocument(id, name, syntaxRoot, folders, filePath, preservationMode: PreservationMode.PreserveIdentity).GetDocument(id)!;
685return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
694return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
703return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
712return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
721return this.Solution.AddAnalyzerConfigDocument(id, name, text, folders, filePath).GetAnalyzerConfigDocument(id)!;
731return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id);
741return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
750=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id);
759return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id);
768=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id);
777return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
799=> Solution.FallbackAnalyzerOptions.GetValueOrDefault(Language, StructuredAnalyzerConfigOptions.Empty);