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)
153Func<StateChange, TranslationAction?>? translate, 166Func<StateChange, TArg, TranslationAction?> translate, 178/// Same as <see cref="ForkProject{TArg}(StateChange, Func{StateChange, TArg, TranslationAction?}, bool, TArg)"/> 183TranslationAction? translate, 417static (stateChange, assemblyName) => new TranslationAction.ProjectAssemblyNameAction( 468static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 499static stateChange => new TranslationAction.ProjectCompilationOptionsAction(stateChange.OldProjectState, stateChange.NewProjectState), 522static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 564static stateChange => new TranslationAction.ReplaceAllSyntaxTreesAction( 772return new TranslationAction.AddOrRemoveAnalyzerReferencesAction( 876Func<ProjectState, ImmutableArray<TDocumentState>, TranslationAction> getTranslationAction) 889var compilationTranslationAction = getTranslationAction(oldProjectState, newDocumentStates); 907/// Updates the <paramref name="oldProjectState"/> to a new state with <paramref name="newDocumentStates"/> and returns a <see cref="TranslationAction"/> that 910private static TranslationAction GetUpdateDocumentsTranslationAction<TDocumentState>(ProjectState oldProjectState, ImmutableArray<TDocumentState> newDocumentStates) 921TranslationAction GetUpdateOrdinaryDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<DocumentState> newDocumentStates) 925return new TranslationAction.TouchDocumentsAction(oldProjectState, newProjectState, oldDocumentStates, newDocumentStates); 928TranslationAction GetUpdateAdditionalDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AdditionalDocumentState> newDocumentStates) 932return new TranslationAction.TouchAdditionalDocumentsAction(oldProjectState, newProjectState, oldDocumentStates, newDocumentStates); 935TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates) 939return new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProjectState, newProjectState); 1112return new TranslationAction.TouchDocumentsAction( 1131return new TranslationAction.TouchAdditionalDocumentsAction( 1142static stateChange => new TranslationAction.TouchAnalyzerConfigDocumentsAction(stateChange.OldProjectState, stateChange.NewProjectState), 1824var compilationTranslationAction = GetRemoveDocumentsTranslationAction(oldProjectState, documentIds, removedDocumentStatesForProject); 1838private static TranslationAction GetRemoveDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<DocumentId> documentIds, ImmutableArray<TDocumentState> states) 1841ImmutableArray<DocumentState> documentStates => new TranslationAction.RemoveDocumentsAction(oldProject, oldProject.RemoveDocuments(documentIds), documentStates), 1842ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.RemoveAdditionalDocumentsAction(oldProject, oldProject.RemoveAdditionalDocuments(documentIds), additionalDocumentStates), 1843ImmutableArray<AnalyzerConfigDocumentState> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)), 1847private static TranslationAction GetAddDocumentsTranslationAction<TDocumentState>(ProjectState oldProject, ImmutableArray<TDocumentState> states) 1850ImmutableArray<DocumentState> documentStates => new TranslationAction.AddDocumentsAction(oldProject, oldProject.AddDocuments(documentStates), documentStates), 1851ImmutableArray<AdditionalDocumentState> additionalDocumentStates => new TranslationAction.AddAdditionalDocumentsAction(oldProject, oldProject.AddAdditionalDocuments(additionalDocumentStates), additionalDocumentStates), 1852ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)), 1876translate: 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) 370public override TranslationAction? TryMergeWithPrior(TranslationAction priorAction)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
75public ICompilationTracker Fork(ProjectState newProject, TranslationAction? translate)