11 types derived from CompilationAndGeneratorDriverTranslationAction
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\Solution\SolutionState.CompilationAndGeneratorDriverTranslationAction_Actions.cs (11)
21
internal sealed class TouchDocumentAction :
CompilationAndGeneratorDriverTranslationAction
55
internal sealed class TouchAdditionalDocumentAction :
CompilationAndGeneratorDriverTranslationAction
91
internal sealed class RemoveDocumentsAction :
CompilationAndGeneratorDriverTranslationAction
116
internal sealed class AddDocumentsAction :
CompilationAndGeneratorDriverTranslationAction
141
internal sealed class ReplaceAllSyntaxTreesAction :
CompilationAndGeneratorDriverTranslationAction
184
internal sealed class ProjectCompilationOptionsAction :
CompilationAndGeneratorDriverTranslationAction
220
internal sealed class ProjectAssemblyNameAction :
CompilationAndGeneratorDriverTranslationAction
239
internal sealed class AddOrRemoveAnalyzerReferencesAction :
CompilationAndGeneratorDriverTranslationAction
273
internal sealed class AddAdditionalDocumentsAction :
CompilationAndGeneratorDriverTranslationAction
293
internal sealed class RemoveAdditionalDocumentsAction :
CompilationAndGeneratorDriverTranslationAction
313
internal sealed class ReplaceGeneratorDriverAction :
CompilationAndGeneratorDriverTranslationAction
42 references to CompilationAndGeneratorDriverTranslationAction
Microsoft.CodeAnalysis.Workspaces (42)
Workspace\Solution\SolutionState.CompilationAndGeneratorDriverTranslationAction.cs (3)
42
/// <returns>A non-null <see cref="
CompilationAndGeneratorDriverTranslationAction
" /> if we could create a merged one, null otherwise.</returns>
43
public virtual
CompilationAndGeneratorDriverTranslationAction
? TryMergeWithPrior(
CompilationAndGeneratorDriverTranslationAction
priorAction)
Workspace\Solution\SolutionState.CompilationAndGeneratorDriverTranslationAction_Actions.cs (6)
43
public override
CompilationAndGeneratorDriverTranslationAction
? TryMergeWithPrior(
CompilationAndGeneratorDriverTranslationAction
priorAction)
71
public override
CompilationAndGeneratorDriverTranslationAction
? TryMergeWithPrior(
CompilationAndGeneratorDriverTranslationAction
priorAction)
338
public override
CompilationAndGeneratorDriverTranslationAction
? TryMergeWithPrior(
CompilationAndGeneratorDriverTranslationAction
priorAction)
Workspace\Solution\SolutionState.CompilationTracker.CompilationTrackerState.cs (4)
157
ImmutableList<(ProjectState state,
CompilationAndGeneratorDriverTranslationAction
action)> intermediateProjects)
192
public ImmutableList<(ProjectState oldState,
CompilationAndGeneratorDriverTranslationAction
action)> IntermediateProjects { get; }
196
/// apply the <see cref="
CompilationAndGeneratorDriverTranslationAction
" />; this is not a correct snapshot in that
206
ImmutableList<(ProjectState state,
CompilationAndGeneratorDriverTranslationAction
action)> intermediateProjects)
Workspace\Solution\SolutionState.CompilationTracker.cs (5)
110
CompilationAndGeneratorDriverTranslationAction
? translate)
119
: ImmutableList<(ProjectState oldState,
CompilationAndGeneratorDriverTranslationAction
action)>.Empty;
128
var
mergedTranslation = translate.TryMergeWithPrior(priorAction);
384
private static bool IsTouchDocumentActionForDocument(
CompilationAndGeneratorDriverTranslationAction
action, DocumentId id)
385
=> action is
CompilationAndGeneratorDriverTranslationAction
.TouchDocumentAction touchDocumentAction &&
Workspace\Solution\SolutionState.cs (22)
629
return ForkProject(newProject, new
CompilationAndGeneratorDriverTranslationAction
.ProjectAssemblyNameAction(assemblyName));
709
return ForkProject(newProject, new
CompilationAndGeneratorDriverTranslationAction
.ReplaceAllSyntaxTreesAction(newProject, isParseOptionChange: false));
758
return ForkProject(newProject, new
CompilationAndGeneratorDriverTranslationAction
.ProjectCompilationOptionsAction(newProject, isAnalyzerConfigChange: false));
783
return ForkProject(newProject, new
CompilationAndGeneratorDriverTranslationAction
.ReplaceAllSyntaxTreesAction(newProject, isParseOptionChange: true));
929
return ForkProject(newProject, new
CompilationAndGeneratorDriverTranslationAction
.ReplaceAllSyntaxTreesAction(newProject, isParseOptionChange: false));
1000
new
CompilationAndGeneratorDriverTranslationAction
.AddOrRemoveAnalyzerReferencesAction(oldProject.Language, referencesToAdd: analyzerReferences));
1019
new
CompilationAndGeneratorDriverTranslationAction
.AddOrRemoveAnalyzerReferencesAction(oldProject.Language, referencesToRemove: ImmutableArray.Create(analyzerReference)));
1051
new
CompilationAndGeneratorDriverTranslationAction
.AddOrRemoveAnalyzerReferencesAction(oldProject.Language, referencesToAdd: addedReferences, referencesToRemove: removedReferences));
1062
(oldProject, documents) => (oldProject.AddDocuments(documents), new
CompilationAndGeneratorDriverTranslationAction
.AddDocumentsAction(documents)));
1069
/// <param name="addDocumentsToProjectState">Returns the new <see cref="ProjectState"/> with the documents added, and the <see cref="
CompilationAndGeneratorDriverTranslationAction
"/> needed as well.</param>
1074
Func<ProjectState, ImmutableArray<T>, (ProjectState newState,
CompilationAndGeneratorDriverTranslationAction
translationAction)> addDocumentsToProjectState)
1121
(projectState, documents) => (projectState.AddAdditionalDocuments(documents), new
CompilationAndGeneratorDriverTranslationAction
.AddAdditionalDocumentsAction(documents)));
1132
return (newProject, new
CompilationAndGeneratorDriverTranslationAction
.ProjectCompilationOptionsAction(newProject, isAnalyzerConfigChange: true));
1143
return (newProject, new
CompilationAndGeneratorDriverTranslationAction
.ProjectCompilationOptionsAction(newProject, isAnalyzerConfigChange: true));
1154
(projectState, documentIds, documentStates) => (projectState.RemoveDocuments(documentIds), new
CompilationAndGeneratorDriverTranslationAction
.RemoveDocumentsAction(documentStates)));
1160
Func<ProjectState, ImmutableArray<DocumentId>, ImmutableArray<T>, (ProjectState newState,
CompilationAndGeneratorDriverTranslationAction
translationAction)> removeDocumentsFromProjectState)
1209
(projectState, documentIds, documentStates) => (projectState.RemoveAdditionalDocuments(documentIds), new
CompilationAndGeneratorDriverTranslationAction
.RemoveAdditionalDocumentsAction(documentStates)));
1453
new
CompilationAndGeneratorDriverTranslationAction
.TouchDocumentAction(oldDocument, newDocument),
1469
translate: new
CompilationAndGeneratorDriverTranslationAction
.TouchAdditionalDocumentAction(oldDocument, newDocument));
1481
newProject.CompilationOptions != null ? new
CompilationAndGeneratorDriverTranslationAction
.ProjectCompilationOptionsAction(newProject, isAnalyzerConfigChange: true) : null);
1492
CompilationAndGeneratorDriverTranslationAction
? translate = null,
1946
translate: new
CompilationAndGeneratorDriverTranslationAction
.ReplaceGeneratorDriverAction(
Workspace\Solution\SolutionState.GeneratedFileReplacingCompilationTracker.cs (1)
61
public ICompilationTracker Fork(ProjectState newProject,
CompilationAndGeneratorDriverTranslationAction
? translate)
Workspace\Solution\SolutionState.ICompilationTracker.cs (1)
37
ICompilationTracker Fork(ProjectState newProject,
CompilationAndGeneratorDriverTranslationAction
? translate);