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