2 writes to AdditionalDocumentStates
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\ProjectState.cs (2)
79
AdditionalDocumentStates
= additionalDocumentStates;
117
AdditionalDocumentStates
= new TextDocumentStates<AdditionalDocumentState>(projectInfoFixed.AdditionalDocuments, info => new AdditionalDocumentState(languageServices.SolutionServices, info, loadTextOptions));
19 references to AdditionalDocumentStates
Microsoft.CodeAnalysis.Workspaces (19)
Workspace\Solution\Project.cs (3)
185
public IReadOnlyList<DocumentId> AdditionalDocumentIds => State.
AdditionalDocumentStates
.Ids;
218
=> State.
AdditionalDocumentStates
.Contains(documentId);
469
(documentId, project) => project.State.
AdditionalDocumentStates
.TryGetState(documentId, out var state) ? new AdditionalDocument(project, state) : null;
Workspace\Solution\ProjectChanges.cs (6)
106
=> NewProject.State.
AdditionalDocumentStates
.GetAddedStateIds(OldProject.State.
AdditionalDocumentStates
);
137
=> NewProject.State.
AdditionalDocumentStates
.GetChangedStateIds(OldProject.State.
AdditionalDocumentStates
);
156
=> NewProject.State.
AdditionalDocumentStates
.GetRemovedStateIds(OldProject.State.
AdditionalDocumentStates
);
Workspace\Solution\ProjectState.cs (4)
119
_lazyLatestDocumentVersion = AsyncLazy.Create(static (self, c) => ComputeLatestDocumentVersionAsync(self.DocumentStates, self.
AdditionalDocumentStates
, c), arg: this);
120
_lazyLatestDocumentTopLevelChangeVersion = AsyncLazy.Create(static (self, c) => ComputeLatestDocumentTopLevelChangeVersionAsync(self.DocumentStates, self.
AdditionalDocumentStates
, c), arg: this);
133
typeof(TDocumentState) == typeof(AdditionalDocumentState) ?
AdditionalDocumentStates
:
330
static self => self.
AdditionalDocumentStates
.SelectAsArray(static documentState => documentState.AdditionalText),
Workspace\Solution\ProjectState_Checksum.cs (1)
48
var additionalDocumentChecksumsTask =
AdditionalDocumentStates
.GetDocumentChecksumsAndIdsAsync(cancellationToken);
Workspace\Solution\SolutionCompilationState.cs (1)
886
var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.
AdditionalDocumentStates
.GetRequiredState(s.Id), oldProjectState);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
394
var additionalTexts = projectState.
AdditionalDocumentStates
.SelectAsArray(static documentState => documentState.AdditionalText);
418
Contract.ThrowIfFalse(additionalTexts.Length == projectState.
AdditionalDocumentStates
.Count);
Workspace\Solution\SolutionState.cs (2)
287
this.GetProjectState(documentId.ProjectId)!.
AdditionalDocumentStates
.Contains(documentId);
305
=> GetRequiredProjectState(documentId.ProjectId).
AdditionalDocumentStates
.GetRequiredState(documentId);