2 writes to AdditionalDocumentStates
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\ProjectState.cs (2)
79AdditionalDocumentStates = additionalDocumentStates; 117AdditionalDocumentStates = 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)
185public 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); 133typeof(TDocumentState) == typeof(AdditionalDocumentState) ? AdditionalDocumentStates : 330static self => self.AdditionalDocumentStates.SelectAsArray(static documentState => documentState.AdditionalText),
Workspace\Solution\ProjectState_Checksum.cs (1)
48var additionalDocumentChecksumsTask = AdditionalDocumentStates.GetDocumentChecksumsAndIdsAsync(cancellationToken);
Workspace\Solution\SolutionCompilationState.cs (1)
886var oldDocumentStates = newDocumentStates.SelectAsArray(static (s, oldProjectState) => oldProjectState.AdditionalDocumentStates.GetRequiredState(s.Id), oldProjectState);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
394var additionalTexts = projectState.AdditionalDocumentStates.SelectAsArray(static documentState => documentState.AdditionalText); 418Contract.ThrowIfFalse(additionalTexts.Length == projectState.AdditionalDocumentStates.Count);
Workspace\Solution\SolutionState.cs (2)
287this.GetProjectState(documentId.ProjectId)!.AdditionalDocumentStates.Contains(documentId); 305=> GetRequiredProjectState(documentId.ProjectId).AdditionalDocumentStates.GetRequiredState(documentId);