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