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