src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
45fixAllContext.Project.Solution,
IntelliSense\AsyncCompletion\CompletionSource.cs (3)
170document.Project, document.Project.Services, sourceText, triggerLocation.Position, roslynTrigger, options, document.Project.Solution.Options, _roles);
395document, triggerLocation, options, document.Project.Solution.Options, roslynTrigger, _roles, cancellationToken).ConfigureAwait(false);
537var supportedPlatforms = SymbolCompletionItem.GetSupportedPlatforms(roslynItem, document.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"/>.
136public IEnumerable<ProjectReference> ProjectReferences => State.ProjectReferences.Where(pr => this.Solution.ContainsProject(pr.ProjectId));
232=> Solution.GetDocumentId(syntaxTree, this.Id);
238=> Solution.GetDocument(syntaxTree, this.Id);
318var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(this.State, cancellationToken).ConfigureAwait(false);
350var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(State, cancellationToken).ConfigureAwait(false);
385var documentState = Solution.CompilationState.TryGetSourceGeneratedDocumentStateForAlreadyGeneratedId(documentId);
394return Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(this.State, cancellationToken);
399return Solution.CompilationState.GetSourceGeneratorRunResultAsync(this.State, cancellationToken);
513=> Solution.CompilationState.TryGetCompilation(this.Id, out compilation);
524=> Solution.CompilationState.GetCompilationAsync(State, cancellationToken);
531=> Solution.CompilationState.HasSuccessfullyLoadedAsync(State, cancellationToken);
561=> Solution.CompilationState.GetDependentVersionAsync(this.Id, cancellationToken);
568=> Solution.CompilationState.GetDependentSemanticVersionAsync(this.Id, cancellationToken);
581=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
587=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id);
590=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id);
593=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id);
596=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id);
602=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id);
608=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id);
615=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id);
622=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
628=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id);
635=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
642=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
649=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
655=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
662=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
669=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
676=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id);
682=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
689=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id);
696=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id);
707return this.Solution.AddDocument(id, name, syntaxRoot, folders, filePath, preservationMode: PreservationMode.PreserveIdentity).GetDocument(id)!;
716return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
725return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
734return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
743return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
752return this.Solution.AddAnalyzerConfigDocument(id, name, text, folders, filePath).GetAnalyzerConfigDocument(id)!;
762return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id);
772return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
781=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id);
790return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id);
799=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id);
808return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
830=> Solution.FallbackAnalyzerOptions.GetValueOrDefault(Language, StructuredAnalyzerConfigOptions.Empty);