12 types derived from TranslationAction
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (12)
26ImmutableArray<DocumentState> newStates) : TranslationAction(oldProjectState, newProjectState) 75: TranslationAction(oldProjectState, newProjectState) 115: TranslationAction(oldProjectState, newProjectState) 138: TranslationAction(oldProjectState, newProjectState) 163: TranslationAction(oldProjectState, newProjectState) 205: TranslationAction(oldProjectState, newProjectState) 240ProjectState newProjectState) : TranslationAction(oldProjectState, newProjectState) 263: TranslationAction(oldProjectState, newProjectState) 281: TranslationAction(oldProjectState, newProjectState) 312: TranslationAction(oldProjectState, newProjectState) 332: TranslationAction(oldProjectState, newProjectState) 352: TranslationAction(oldProjectState, newProjectState)
57 references to TranslationAction
Microsoft.CodeAnalysis.Workspaces (57)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (4)
71/// them by apply the <see cref="TranslationAction" />; this is not a 81public ImmutableList<TranslationAction> PendingTranslationActions { get; } 90ImmutableList<TranslationAction> pendingTranslationActions) 115ImmutableList<TranslationAction> pendingTranslationActions)
Workspace\Solution\SolutionCompilationState.cs (33)
146Func<StateChange, TranslationAction?>? translate, 159Func<StateChange, TArg, TranslationAction?> translate, 171/// Same as <see cref="ForkProject{TArg}(StateChange, Func{StateChange, TArg, TranslationAction?}, bool, TArg)"/> 176TranslationAction? translate, 410static (stateChange, assemblyName) => new TranslationAction.ProjectAssemblyNameAction( 461static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 492static stateChange => new TranslationAction.ProjectCompilationOptionsAction(stateChange.OldProjectState, stateChange.NewProjectState), 515static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 557static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 765return new TranslationAction.AddOrRemoveAnalyzerReferencesAction( 869Func<ProjectState, ImmutableArray<TDocumentState>, TranslationAction> getTranslationAction) 882var compilationTranslationAction = getTranslationAction(oldProjectState, newDocumentStates); 900/// Updates the <paramref name="oldProjectState"/> to a new state with <paramref name="newDocumentStates"/> and returns a <see cref="TranslationAction"/> that 903private static TranslationAction GetUpdateDocumentsTranslationAction<TDocumentState>(ProjectState oldProjectState, ImmutableArray<TDocumentState> newDocumentStates) 914TranslationAction GetUpdateOrdinaryDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<DocumentState> newDocumentStates) 918return new TranslationAction.TouchDocumentsAction(oldProjectState, newProjectState, oldDocumentStates, newDocumentStates); 921TranslationAction GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates) 925return new TranslationAction.TouchAdditionalDocumentsAction(oldProjectState, newProjectState, oldDocumentStates, newDocumentStates); 928TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates) 932return new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProjectState, newProjectState); 1105return new TranslationAction.TouchDocumentsAction( 1124return new TranslationAction.TouchAdditionalDocumentsAction( 1135static stateChange => new TranslationAction.TouchAnalyzerConfigDocumentsAction(stateChange.OldProjectState, stateChange.NewProjectState), 1818var compilationTranslationAction = GetRemoveDocumentsTranslationAction(oldProjectState, documentIds, removedDocumentStatesForProject); 1832private static TranslationAction GetRemoveDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<DocumentId> documentIds, ImmutableArray<TDocumentState> states) 1835ImmutableArray<DocumentState> documentStates => new TranslationAction.RemoveDocumentsAction(oldProject, oldProject.RemoveDocuments(documentIds), documentStates), 1836ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates), 1837ImmutableArray<AnalyzerConfigDocumentState> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)), 1841private static TranslationAction GetAddDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<TDocumentState> states) 1844ImmutableArray<DocumentState> documentStates => new TranslationAction.AddDocumentsAction(oldProject, oldProject.AddDocuments(documentStates), documentStates), 1845ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates), 1846ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)), 1870translate: new TranslationAction.ReplaceGeneratorDriverAction(
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
38ICompilationTracker Fork(ProjectState newProject, TranslationAction? translate);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (9)
121ICompilationTracker ICompilationTracker.Fork(ProjectState newProjectState, TranslationAction? translate) 130TranslationAction? translate) 166ImmutableList<TranslationAction> GetPendingTranslationActions(CompilationTrackerState state) 181var priorAction = pendingTranslationActions.Last(); 182var mergedTranslation = translate.TryMergeWithPrior(priorAction); 324var translationActionsBuilder = ImmutableList.CreateBuilder<TranslationAction>(); 327foreach (var chunk in this.ProjectState.DocumentStates.GetStatesInCompilationOrder().Chunk(TranslationAction.AddDocumentsAction.AddDocumentsBatchSize)) 331translationActionsBuilder.Add(new TranslationAction.AddDocumentsAction( 408var translationAction = inProgressState.PendingTranslationActions[0];
Workspace\Solution\SolutionCompilationState.TranslationAction.cs (3)
55/// <returns>A non-null <see cref="TranslationAction" /> if we could create a merged one, null otherwise.</returns> 56public virtual TranslationAction? TryMergeWithPrior(TranslationAction priorAction)
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (6)
56public override TranslationAction? TryMergeWithPrior(TranslationAction priorAction) 88public override TranslationAction? TryMergeWithPrior(TranslationAction priorAction) 374public override TranslationAction? TryMergeWithPrior(TranslationAction priorAction)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
74public ICompilationTracker Fork(ProjectState newProject, TranslationAction? translate)