5 instantiations of AdditionalDocumentState
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\AdditionalDocumentState.cs (3)
35=> new AdditionalDocumentState( 43=> new AdditionalDocumentState( 61return new AdditionalDocumentState(
Workspace\Solution\ProjectState.cs (2)
121AdditionalDocumentStates = new TextDocumentStates<AdditionalDocumentState>(projectInfoFixed.AdditionalDocuments, info => new AdditionalDocumentState(languageServices.SolutionServices, info, loadTextOptions)); 295typeof(TDocumentState) == typeof(AdditionalDocumentState) ? new AdditionalDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) :
41 references to AdditionalDocumentState
Microsoft.CodeAnalysis.Workspaces (41)
Workspace\Solution\AdditionalDocumentState.cs (6)
50public new AdditionalDocumentState UpdateText(TextLoader loader, PreservationMode mode) 51=> (AdditionalDocumentState)base.UpdateText(loader, mode); 53public new AdditionalDocumentState UpdateText(SourceText text, PreservationMode mode) 54=> (AdditionalDocumentState)base.UpdateText(text, mode); 56public new AdditionalDocumentState UpdateText(TextAndVersion newTextAndVersion, PreservationMode mode) 57=> (AdditionalDocumentState)base.UpdateText(newTextAndVersion, mode);
Workspace\Solution\AdditionalTextWithState.cs (4)
12/// An implementation of <see cref="AdditionalText"/> for the compiler that wraps a <see cref="AdditionalDocumentState"/>. 15/// Create a <see cref="SourceText"/> from a <see cref="AdditionalDocumentState"/>. 17internal sealed class AdditionalTextWithState(AdditionalDocumentState documentState) : AdditionalText 19private readonly AdditionalDocumentState _documentState = documentState ?? throw new ArgumentNullException(nameof(documentState));
Workspace\Solution\Project.cs (1)
469(documentId, project) => project.State.AdditionalDocumentStates.TryGetState(documentId, out var state) ? new AdditionalDocument(project, state) : null;
Workspace\Solution\ProjectState.cs (14)
41public readonly TextDocumentStates<AdditionalDocumentState> AdditionalDocumentStates; 72TextDocumentStates<AdditionalDocumentState> additionalDocumentStates, 121AdditionalDocumentStates = new TextDocumentStates<AdditionalDocumentState>(projectInfoFixed.AdditionalDocuments, info => new AdditionalDocumentState(languageServices.SolutionServices, info, loadTextOptions)); 140typeof(TDocumentState) == typeof(AdditionalDocumentState) ? AdditionalDocumentStates : 198private static async Task<VersionStamp> ComputeLatestDocumentVersionAsync(TextDocumentStates<DocumentState> documentStates, TextDocumentStates<AdditionalDocumentState> additionalDocumentStates, CancellationToken cancellationToken) 227TextDocumentStates<AdditionalDocumentState> newAdditionalDocumentStates) 256private static async Task<VersionStamp> ComputeLatestDocumentTopLevelChangeVersionAsync(TextDocumentStates<DocumentState> documentStates, TextDocumentStates<AdditionalDocumentState> additionalDocumentStates, CancellationToken cancellationToken) 295typeof(TDocumentState) == typeof(AdditionalDocumentState) ? new AdditionalDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) : 684TextDocumentStates<AdditionalDocumentState>? additionalDocumentStates = null, 871public ProjectState AddAdditionalDocuments(ImmutableArray<AdditionalDocumentState> documents) 986public ProjectState UpdateAdditionalDocument(AdditionalDocumentState newDocument) 989public ProjectState UpdateAdditionalDocuments(ImmutableArray<AdditionalDocumentState> oldDocuments, ImmutableArray<AdditionalDocumentState> newDocuments) 1035TextDocumentStates<AdditionalDocumentState> newAdditionalDocumentStates,
Workspace\Solution\Solution.cs (2)
1060=> WithCompilationState(CompilationState.AddDocumentsToMultipleProjects<AdditionalDocumentState>(documentInfos)); 1154=> WithCompilationState(CompilationState.RemoveDocumentsFromMultipleProjects<AdditionalDocumentState>(documentIds));
Workspace\Solution\SolutionCompilationState.cs (5)
608UpdateDocuments<AdditionalDocumentState>(info.AdditionalDocuments); 894ImmutableArray<AdditionalDocumentState> additionalNewDocumentStates => GetUpdateAdditionalDocumentsTranslationAction(oldProjectState, additionalNewDocumentStates), 906TranslationAction GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates) 1735ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates), 1744ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates),
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (4)
72ImmutableArray<AdditionalDocumentState> oldStates, 73ImmutableArray<AdditionalDocumentState> newStates) 76private readonly ImmutableArray<AdditionalDocumentState> _oldStates = oldStates; 77private readonly ImmutableArray<AdditionalDocumentState> _newStates = newStates;
Workspace\Solution\SolutionState.cs (5)
304private AdditionalDocumentState GetRequiredAdditionalDocumentState(DocumentId documentId) 1016var oldDocument = GetRequiredAdditionalDocumentState(documentId); 1064var oldDocument = GetRequiredAdditionalDocumentState(documentId); 1121var oldDocument = GetRequiredAdditionalDocumentState(documentId); 1154private StateChange UpdateAdditionalDocumentState(AdditionalDocumentState newDocument)