10 types derived from TranslationAction
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (10)
25
ImmutableHashSet<DocumentId> documentIds) :
TranslationAction
(oldProjectState, newProjectState)
80
:
TranslationAction
(oldProjectState, newProjectState)
120
:
TranslationAction
(oldProjectState, newProjectState)
143
:
TranslationAction
(oldProjectState, newProjectState)
185
:
TranslationAction
(oldProjectState, newProjectState)
220
ProjectState newProjectState) :
TranslationAction
(oldProjectState, newProjectState)
243
:
TranslationAction
(oldProjectState, newProjectState)
261
:
TranslationAction
(oldProjectState, newProjectState)
292
:
TranslationAction
(oldProjectState, newProjectState)
312
:
TranslationAction
(oldProjectState, newProjectState)
53 references to TranslationAction
Microsoft.CodeAnalysis.Workspaces (53)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (4)
71
/// them by apply the <see cref="
TranslationAction
" />; this is not a
81
public ImmutableList<
TranslationAction
> PendingTranslationActions { get; }
90
ImmutableList<
TranslationAction
> pendingTranslationActions)
115
ImmutableList<
TranslationAction
> pendingTranslationActions)
Workspace\Solution\SolutionCompilationState.cs (31)
155
Func<StateChange,
TranslationAction
?>? translate,
168
Func<StateChange, TArg,
TranslationAction
?> translate,
176
var
translationAction = translate.Invoke(stateChange, arg);
427
static (stateChange, assemblyName) => new
TranslationAction
.ProjectAssemblyNameAction(
478
static stateChange => new
TranslationAction
.ReplaceAllSyntaxTreesAction(
509
static stateChange => new
TranslationAction
.ProjectCompilationOptionsAction(stateChange.OldProjectState, stateChange.NewProjectState),
532
static stateChange => new
TranslationAction
.ReplaceAllSyntaxTreesAction(
574
static stateChange => new
TranslationAction
.ReplaceAllSyntaxTreesAction(
784
return new
TranslationAction
.AddOrRemoveAnalyzerReferencesAction(
888
Func<ProjectState, ImmutableArray<TDocumentState>,
TranslationAction
> getTranslationAction)
901
var
compilationTranslationAction = getTranslationAction(oldProjectState, newDocumentStates);
919
/// Updates the <paramref name="oldProjectState"/> to a new state with <paramref name="newDocumentStates"/> and returns a <see cref="
TranslationAction
"/> that
922
private static
TranslationAction
GetUpdateDocumentsTranslationAction<TDocumentState>(ProjectState oldProjectState, ImmutableArray<TDocumentState> newDocumentStates)
933
TranslationAction
GetUpdateOrdinaryDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<DocumentState> newDocumentStates)
937
return new
TranslationAction
.UpdateOrRemoveDocumentsAction(oldProjectState, newProjectState, newDocumentStates.Select(s => s.Id).ToImmutableHashSet());
940
TranslationAction
GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates)
944
return new
TranslationAction
.TouchAdditionalDocumentsAction(oldProjectState, newProjectState, oldDocumentStates, newDocumentStates);
947
TranslationAction
GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates)
951
return new
TranslationAction
.TouchAnalyzerConfigDocumentsAction(oldProjectState, newProjectState);
1121
return new
TranslationAction
.UpdateOrRemoveDocumentsAction(
1140
return new
TranslationAction
.TouchAdditionalDocumentsAction(
1151
static stateChange => new
TranslationAction
.TouchAnalyzerConfigDocumentsAction(stateChange.OldProjectState, stateChange.NewProjectState),
1835
var
compilationTranslationAction = GetRemoveDocumentsTranslationAction(oldProjectState, documentIds, removedDocumentStatesForProject);
1849
private static
TranslationAction
GetRemoveDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<DocumentId> documentIds, ImmutableArray<TDocumentState> states)
1852
ImmutableArray<DocumentState> _ => new
TranslationAction
.UpdateOrRemoveDocumentsAction(oldProject, oldProject.RemoveDocuments(documentIds), documentIds.ToImmutableHashSet()),
1853
ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new
TranslationAction
.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates),
1854
ImmutableArray<AnalyzerConfigDocumentState> _ => new
TranslationAction
.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)),
1858
private static
TranslationAction
GetAddDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<TDocumentState> states)
1861
ImmutableArray<DocumentState> documentStates => new
TranslationAction
.AddDocumentsAction(oldProject, oldProject.AddDocuments(documentStates), documentStates),
1862
ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new
TranslationAction
.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates),
1863
ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new
TranslationAction
.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
38
ICompilationTracker Fork(ProjectState newProject,
TranslationAction
? translate);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (9)
121
ICompilationTracker ICompilationTracker.Fork(ProjectState newProjectState,
TranslationAction
? translate)
130
TranslationAction
? translate)
166
ImmutableList<
TranslationAction
> GetPendingTranslationActions(CompilationTrackerState state)
181
var
priorAction = pendingTranslationActions.Last();
182
var
mergedTranslation = translate.TryMergeWithPrior(priorAction);
324
var translationActionsBuilder = ImmutableList.CreateBuilder<
TranslationAction
>();
327
foreach (var chunk in this.ProjectState.DocumentStates.GetStatesInCompilationOrder().Chunk(
TranslationAction
.AddDocumentsAction.AddDocumentsBatchSize))
331
translationActionsBuilder.Add(new
TranslationAction
.AddDocumentsAction(
408
var
translationAction = inProgressState.PendingTranslationActions[0];
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (4)
62
public override
TranslationAction
? TryMergeWithPrior(
TranslationAction
priorAction)
93
public override
TranslationAction
? TryMergeWithPrior(
TranslationAction
priorAction)
Workspace\Solution\SolutionCompilationState.TranslationAction.cs (3)
55
/// <returns>A non-null <see cref="
TranslationAction
" /> if we could create a merged one, null otherwise.</returns>
56
public virtual
TranslationAction
? TryMergeWithPrior(
TranslationAction
priorAction)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
75
public ICompilationTracker Fork(ProjectState newProject,
TranslationAction
? translate)