2 instantiations of SolutionCompilationState
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Solution.cs (1)
64: this(new SolutionCompilationState(
Workspace\Solution\SolutionCompilationState.cs (1)
134return new SolutionCompilationState(
147 references to SolutionCompilationState
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspWorkspaceManager.cs (1)
481var compilationState = workspaceSolution.CompilationState;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\SolutionAssetCache.cs (1)
174var compilationState = pinnedSolution.CompilationState;
Microsoft.CodeAnalysis.Workspaces (145)
Remote\IRemoteKeepAliveService.cs (3)
30SolutionCompilationState compilationState, 44private RemoteKeepAliveSession(SolutionCompilationState compilationState, IAsynchronousOperationListener listener) 114SolutionCompilationState compilationState, CancellationToken cancellationToken)
Remote\RemoteHostClient.cs (2)
112SolutionCompilationState compilationState, 150SolutionCompilationState compilationState,
Remote\RemoteServiceConnection.cs (10)
43SolutionCompilationState compilationState, 48SolutionCompilationState compilationState, 67SolutionCompilationState compilationState, 73SolutionCompilationState compilationState, 93SolutionCompilationState compilationState, 98SolutionCompilationState compilationState, 117SolutionCompilationState compilationState, 123SolutionCompilationState compilationState, 143SolutionCompilationState compilationState1, 144SolutionCompilationState compilationState2,
Workspace\Solution\Solution.cs (11)
46SolutionCompilationState compilationState, 72internal SolutionCompilationState CompilationState { get; } 168var projectId = SolutionCompilationState.GetProjectId(assemblySymbol); 339private Solution WithCompilationState(SolutionCompilationState compilationState) 358/// <inheritdoc cref="SolutionCompilationState.AddProjects"/> 366/// <inheritdoc cref="SolutionCompilationState.AddProjects"/> 370/// <inheritdoc cref="SolutionCompilationState.RemoveProjects"/> 378/// <inheritdoc cref="SolutionCompilationState.RemoveProjects"/> 1521static AsyncLazy<Solution> CreateLazyFrozenSolution(SolutionCompilationState compilationState, DocumentId documentId) 1526static Solution ComputeFrozenSolution(SolutionCompilationState compilationState, DocumentId documentId, CancellationToken cancellationToken) 1623/// <inheritdoc cref="SolutionCompilationState.UpdateSpecificSourceGeneratorExecutionVersions"/>
Workspace\Solution\SolutionCompilationState.cs (77)
57private readonly AsyncLazy<SolutionCompilationState> _cachedFrozenSnapshot; 65AsyncLazy<SolutionCompilationState>? cachedFrozenSnapshot = null) 115private SolutionCompilationState Branch( 120AsyncLazy<SolutionCompilationState>? cachedFrozenSnapshot = null) 144private SolutionCompilationState ForkProject( 157private SolutionCompilationState ForkProject<TArg>( 174private SolutionCompilationState ForceForkProject( 320public SolutionCompilationState AddProjects(ArrayBuilder<ProjectInfo> projectInfos) 359public SolutionCompilationState RemoveProjects(ArrayBuilder<ProjectId> projectIds) 405public SolutionCompilationState WithProjectAssemblyName( 417public SolutionCompilationState WithProjectOutputFilePath(ProjectId projectId, string? outputFilePath) 426public SolutionCompilationState WithProjectOutputRefFilePath( 436public SolutionCompilationState WithProjectCompilationOutputInfo( 446public SolutionCompilationState WithProjectDefaultNamespace( 456public SolutionCompilationState WithProjectChecksumAlgorithm( 467public SolutionCompilationState WithProjectName( 477public SolutionCompilationState WithProjectFilePath( 487public SolutionCompilationState WithProjectCompilationOptions( 497public SolutionCompilationState WithProjectParseOptions( 522public SolutionCompilationState WithHasAllInformation( 532public SolutionCompilationState WithRunAnalyzers( 542internal SolutionCompilationState WithHasSdkCodeStyleAnalyzers( 552public SolutionCompilationState WithProjectDocumentsOrder( 562public SolutionCompilationState WithProjectAttributes(ProjectInfo.ProjectAttributes attributes) 591public SolutionCompilationState WithProjectInfo(ProjectInfo info) 659public SolutionCompilationState AddProjectReferences( 669public SolutionCompilationState RemoveProjectReference(ProjectId projectId, ProjectReference projectReference) 678public SolutionCompilationState WithProjectReferences( 688public SolutionCompilationState AddMetadataReferences( 698public SolutionCompilationState RemoveMetadataReference(ProjectId projectId, MetadataReference metadataReference) 707public SolutionCompilationState WithProjectMetadataReferences( 717public SolutionCompilationState AddAnalyzerReferences(StateChange stateChange, ImmutableArray<AnalyzerReference> analyzerReferences) 727public SolutionCompilationState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences) 735public SolutionCompilationState RemoveAnalyzerReference(AnalyzerReference analyzerReference) 743public SolutionCompilationState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences) 752public SolutionCompilationState RemoveAnalyzerReference(ProjectId projectId, AnalyzerReference analyzerReference) 763public SolutionCompilationState WithProjectAnalyzerReferences( 794public SolutionCompilationState WithDocumentAttributes<TArg>( 803internal SolutionCompilationState WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode) 817private SolutionCompilationState UpdateDocumentsInMultipleProjects<TDocumentState, TDocumentData, TArg>( 850/// Returns <see cref="SolutionCompilationState"/> with projects updated to new document states specified in <paramref name="updatedDocumentStatesPerProject"/>. 852private SolutionCompilationState WithDocumentStatesOfMultipleProjects<TDocumentState>( 921public SolutionCompilationState WithDocumentState( 929public SolutionCompilationState WithAdditionalDocumentText( 937public SolutionCompilationState WithAnalyzerConfigDocumentText( 944public SolutionCompilationState WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options) 948public SolutionCompilationState WithDocumentText( 956public SolutionCompilationState WithAdditionalDocumentText( 964public SolutionCompilationState WithAnalyzerConfigDocumentText( 972public SolutionCompilationState WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode) 983public SolutionCompilationState WithDocumentContentsFrom( 996public SolutionCompilationState WithDocumentSourceCodeKind( 1004public SolutionCompilationState UpdateDocumentTextLoader( 1019public SolutionCompilationState UpdateAdditionalDocumentTextLoader( 1034public SolutionCompilationState UpdateAnalyzerConfigDocumentTextLoader( 1048private SolutionCompilationState UpdateDocumentState(StateChange stateChange, DocumentId documentId) 1067private SolutionCompilationState UpdateAdditionalDocumentState(StateChange stateChange, DocumentId documentId) 1086private SolutionCompilationState UpdateAnalyzerConfigDocumentState(StateChange stateChange) 1290public SolutionCompilationState WithoutFrozenSourceGeneratedDocuments() 1336public SolutionCompilationState WithFrozenSourceGeneratedDocuments( 1415public SolutionCompilationState WithNewWorkspace(string? workspaceKind, int workspaceVersion, SolutionServices services) 1421public SolutionCompilationState WithOptions(SolutionOptionSet options) 1433public SolutionCompilationState UpdateSpecificSourceGeneratorExecutionVersions( 1474public SolutionCompilationState WithFrozenPartialCompilations(CancellationToken cancellationToken) 1477private SolutionCompilationState ComputeFrozenSnapshot(CancellationToken cancellationToken) 1534public SolutionCompilationState WithFrozenPartialCompilationIncludingSpecificDocument( 1587static SolutionCompilationState WithFrozenPartialCompilationIncludingSpecificDocumentWorker( 1588SolutionCompilationState @this, DocumentId documentId, CancellationToken cancellationToken) 1616static SolutionCompilationState ComputeFrozenPartialState( 1617SolutionCompilationState frozenCompilationState, 1621var currentState = frozenCompilationState; 1657public SolutionCompilationState AddDocumentsToMultipleProjects<TDocumentState>( 1680public SolutionCompilationState RemoveDocumentsFromMultipleProjects<T>(ImmutableArray<DocumentId> documentIds) 1702private SolutionCompilationState RemoveDocumentsFromSingleProject<T>(ProjectId projectId, ImmutableArray<DocumentId> documentIds) 1750public SolutionCompilationState WithCachedSourceGeneratorState(ProjectId projectToUpdate, Project projectWithCachedGeneratorState) 1781public SolutionCompilationState WithDocumentText(IEnumerable<DocumentId?> documentIds, SourceText text, PreservationMode mode) 1816internal readonly struct TestAccessor(SolutionCompilationState compilationState)
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (9)
40Task<Compilation> GetCompilationAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 54Task<VersionStamp> GetDependentVersionAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 55Task<VersionStamp> GetDependentSemanticVersionAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 56Task<Checksum> GetDependentChecksumAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 67SolutionCompilationState compilationState, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken); 69ValueTask<ImmutableArray<Diagnostic>> GetSourceGeneratorDiagnosticsAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 70ValueTask<GeneratorDriverRunResult?> GetSourceGeneratorRunResultAsync(SolutionCompilationState solution, CancellationToken cancellationToken); 72Task<bool> HasSuccessfullyLoadedAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken); 77Task<MetadataReference?> GetOrBuildSkeletonReferenceAsync(SolutionCompilationState compilationState, MetadataReferenceProperties properties, CancellationToken cancellationToken);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (14)
212public Task<Compilation> GetCompilationAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 232SolutionCompilationState compilationState, CancellationToken cancellationToken) 239SolutionCompilationState compilationState, 667SolutionCompilationState compilationState, CancellationToken cancellationToken) 675SolutionCompilationState compilationState, CancellationToken cancellationToken) 843SolutionCompilationState compilationState, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken) 859SolutionCompilationState compilationState, CancellationToken cancellationToken) 886public async ValueTask<GeneratorDriverRunResult?> GetSourceGeneratorRunResultAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 910public Task<MetadataReference?> GetOrBuildSkeletonReferenceAsync(SolutionCompilationState compilationState, MetadataReferenceProperties properties, CancellationToken cancellationToken) 1013SolutionCompilationState compilationState, CancellationToken cancellationToken) 1030SolutionCompilationState compilationState, CancellationToken cancellationToken) 1052SolutionCompilationState compilationState, CancellationToken cancellationToken) 1069SolutionCompilationState compilationState, CancellationToken cancellationToken) 1090SolutionCompilationState compilationState, CancellationToken cancellationToken)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (3)
31SolutionCompilationState compilationState, 76SolutionCompilationState compilationState, 229SolutionCompilationState compilationState,
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (3)
142SolutionCompilationState compilationState, 160SolutionCompilationState compilationState, 197SolutionCompilationState compilationState,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (11)
99public async Task<Compilation> GetCompilationAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 142public Task<VersionStamp> GetDependentVersionAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 145public Task<VersionStamp> GetDependentSemanticVersionAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 148public Task<Checksum> GetDependentChecksumAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 152var tmp = compilationState; // temp. local to avoid a closure allocation for the fast path 165private async Task<Checksum> ComputeDependentChecksumAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken) 171SolutionCompilationState compilationState, bool withFrozenSourceGeneratedDocuments, CancellationToken cancellationToken) 203SolutionCompilationState compilationState, CancellationToken cancellationToken) 227SolutionCompilationState compilationState, CancellationToken cancellationToken) 236public ValueTask<GeneratorDriverRunResult?> GetSourceGeneratorRunResultAsync(SolutionCompilationState solution, CancellationToken cancellationToken) 246public Task<MetadataReference?> GetOrBuildSkeletonReferenceAsync(SolutionCompilationState compilationState, MetadataReferenceProperties properties, CancellationToken cancellationToken)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
129SolutionCompilationState solution, ProjectState projectState, CancellationToken cancellationToken)
Workspace\Solution\StateChecksums.cs (1)
117SolutionCompilationState compilationState,