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);
EditAndContinue\DebuggingSession.cs (3)
495var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
858var newSolution = newProject.Solution;
899var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, newUnmappedDocument.Project.Solution, oldUnmappedDocument, newUnmappedDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
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\NavigateToSearchIndex.cs (3)
40=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
46=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
52=> 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);
515=> Solution.CompilationState.TryGetCompilation(this.Id, out compilation);
526=> Solution.CompilationState.GetCompilationAsync(State, cancellationToken);
533=> Solution.CompilationState.HasSuccessfullyLoadedAsync(State, cancellationToken);
563=> Solution.CompilationState.GetDependentVersionAsync(this.Id, cancellationToken);
570=> Solution.CompilationState.GetDependentSemanticVersionAsync(this.Id, cancellationToken);
583=> this.Solution.WithProjectAssemblyName(this.Id, assemblyName).GetRequiredProject(Id);
589=> this.Solution.WithProjectDefaultNamespace(this.Id, defaultNamespace).GetRequiredProject(Id);
592=> Solution.WithProjectOutputFilePath(Id, path).GetRequiredProject(Id);
595=> Solution.WithProjectOutputRefFilePath(Id, path).GetRequiredProject(Id);
598=> Solution.WithProjectCompilationOutputInfo(Id, info).GetRequiredProject(Id);
604=> this.Solution.WithProjectCompilationOptions(this.Id, options).GetRequiredProject(Id);
610=> this.Solution.WithProjectParseOptions(this.Id, options).GetRequiredProject(Id);
617=> this.Solution.AddProjectReference(this.Id, projectReference).GetRequiredProject(Id);
624=> this.Solution.AddProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
630=> this.Solution.RemoveProjectReference(this.Id, projectReference).GetRequiredProject(Id);
637=> this.Solution.WithProjectReferences(this.Id, projectReferences).GetRequiredProject(Id);
644=> this.Solution.AddMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
651=> this.Solution.AddMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
657=> this.Solution.RemoveMetadataReference(this.Id, metadataReference).GetRequiredProject(Id);
664=> this.Solution.WithProjectMetadataReferences(this.Id, metadataReferences).GetRequiredProject(Id);
671=> this.Solution.AddAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
678=> this.Solution.AddAnalyzerReferences(this.Id, analyzerReferences).GetRequiredProject(Id);
684=> this.Solution.RemoveAnalyzerReference(this.Id, analyzerReference).GetRequiredProject(Id);
691=> this.Solution.WithProjectAnalyzerReferences(this.Id, analyzerReferencs).GetRequiredProject(Id);
698=> Solution.WithProjectAttributes(attributes).GetRequiredProject(Id);
709return this.Solution.AddDocument(id, name, syntaxRoot, folders, filePath, preservationMode: PreservationMode.PreserveIdentity).GetDocument(id)!;
718return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
727return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
736return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
745return this.Solution.AddAdditionalDocument(id, name, text, folders, filePath).GetAdditionalDocument(id)!;
754return this.Solution.AddAnalyzerConfigDocument(id, name, text, folders, filePath).GetAnalyzerConfigDocument(id)!;
764return this.Solution.RemoveDocument(documentId).GetRequiredProject(Id);
774return this.Solution.RemoveDocuments(documentIds).GetRequiredProject(this.Id);
783=> this.Solution.RemoveAdditionalDocument(documentId).GetRequiredProject(Id);
792return this.Solution.RemoveAdditionalDocuments(documentIds).GetRequiredProject(this.Id);
801=> this.Solution.RemoveAnalyzerConfigDocument(documentId).GetRequiredProject(Id);
810return this.Solution.RemoveAnalyzerConfigDocuments(documentIds).GetRequiredProject(this.Id);
832=> Solution.FallbackAnalyzerOptions.GetValueOrDefault(Language, StructuredAnalyzerConfigOptions.Empty);