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(
145 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 (143)
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; } 169var projectId = SolutionCompilationState.GetProjectId(assemblySymbol); 340private Solution WithCompilationState(SolutionCompilationState compilationState) 359/// <inheritdoc cref="SolutionCompilationState.AddProjects"/> 367/// <inheritdoc cref="SolutionCompilationState.AddProjects"/> 371/// <inheritdoc cref="SolutionCompilationState.RemoveProjects"/> 379/// <inheritdoc cref="SolutionCompilationState.RemoveProjects"/> 1531static AsyncLazy<Solution> CreateLazyFrozenSolution(SolutionCompilationState compilationState, DocumentId documentId) 1536static Solution ComputeFrozenSolution(SolutionCompilationState compilationState, DocumentId documentId, CancellationToken cancellationToken) 1633/// <inheritdoc cref="SolutionCompilationState.UpdateSpecificSourceGeneratorExecutionVersions"/>
Workspace\Solution\SolutionCompilationState.cs (75)
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( 716public SolutionCompilationState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences) 724public SolutionCompilationState RemoveAnalyzerReference(AnalyzerReference analyzerReference) 732public SolutionCompilationState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences) 741public SolutionCompilationState WithProjectAnalyzerReferences( 772public SolutionCompilationState WithDocumentAttributes<TArg>( 781internal SolutionCompilationState WithDocumentTexts(ImmutableArray<(DocumentId documentId, SourceText text)> texts, PreservationMode mode) 795private SolutionCompilationState UpdateDocumentsInMultipleProjects<TDocumentState, TDocumentData, TArg>( 828/// Returns <see cref="SolutionCompilationState"/> with projects updated to new document states specified in <paramref name="updatedDocumentStatesPerProject"/>. 830private SolutionCompilationState WithDocumentStatesOfMultipleProjects<TDocumentState>( 899public SolutionCompilationState WithDocumentState( 907public SolutionCompilationState WithAdditionalDocumentText( 915public SolutionCompilationState WithAnalyzerConfigDocumentText( 922public SolutionCompilationState WithFallbackAnalyzerOptions(ImmutableDictionary<string, StructuredAnalyzerConfigOptions> options) 926public SolutionCompilationState WithDocumentText( 934public SolutionCompilationState WithAdditionalDocumentText( 942public SolutionCompilationState WithAnalyzerConfigDocumentText( 950public SolutionCompilationState WithDocumentSyntaxRoots(ImmutableArray<(DocumentId documentId, SyntaxNode root)> syntaxRoots, PreservationMode mode) 961public SolutionCompilationState WithDocumentContentsFrom( 974public SolutionCompilationState WithDocumentSourceCodeKind( 982public SolutionCompilationState UpdateDocumentTextLoader( 997public SolutionCompilationState UpdateAdditionalDocumentTextLoader( 1012public SolutionCompilationState UpdateAnalyzerConfigDocumentTextLoader( 1026private SolutionCompilationState UpdateDocumentState(StateChange stateChange, DocumentId documentId) 1045private SolutionCompilationState UpdateAdditionalDocumentState(StateChange stateChange, DocumentId documentId) 1064private SolutionCompilationState UpdateAnalyzerConfigDocumentState(StateChange stateChange) 1268public SolutionCompilationState WithoutFrozenSourceGeneratedDocuments() 1314public SolutionCompilationState WithFrozenSourceGeneratedDocuments( 1393public SolutionCompilationState WithNewWorkspace(string? workspaceKind, int workspaceVersion, SolutionServices services) 1399public SolutionCompilationState WithOptions(SolutionOptionSet options) 1411public SolutionCompilationState UpdateSpecificSourceGeneratorExecutionVersions( 1452public SolutionCompilationState WithFrozenPartialCompilations(CancellationToken cancellationToken) 1455private SolutionCompilationState ComputeFrozenSnapshot(CancellationToken cancellationToken) 1512public SolutionCompilationState WithFrozenPartialCompilationIncludingSpecificDocument( 1565static SolutionCompilationState WithFrozenPartialCompilationIncludingSpecificDocumentWorker( 1566SolutionCompilationState @this, DocumentId documentId, CancellationToken cancellationToken) 1594static SolutionCompilationState ComputeFrozenPartialState( 1595SolutionCompilationState frozenCompilationState, 1599var currentState = frozenCompilationState; 1635public SolutionCompilationState AddDocumentsToMultipleProjects<TDocumentState>( 1658public SolutionCompilationState RemoveDocumentsFromMultipleProjects<T>(ImmutableArray<DocumentId> documentIds) 1680private SolutionCompilationState RemoveDocumentsFromSingleProject<T>(ProjectId projectId, ImmutableArray<DocumentId> documentIds) 1728public SolutionCompilationState WithCachedSourceGeneratorState(ProjectId projectToUpdate, Project projectWithCachedGeneratorState) 1759public SolutionCompilationState WithDocumentText(IEnumerable<DocumentId?> documentIds, SourceText text, PreservationMode mode) 1794internal 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,