2 instantiations of AnalyzerActions
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
655public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 981AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);
51 references to AnalyzerActions
Microsoft.CodeAnalysis (51)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (2)
14internal static readonly AnalyzerActionCounts Empty = new AnalyzerActionCounts(in AnalyzerActions.Empty); 16internal AnalyzerActionCounts(in AnalyzerActions analyzerActions) :
DiagnosticAnalyzer\AnalyzerDriver.cs (21)
92protected ref readonly AnalyzerActions AnalyzerActions => ref _lazyAnalyzerActions; 184private AnalyzerActions _lazyAnalyzerActions; 1453private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1810in AnalyzerActions perSymbolActions, 2023private static async Task<(AnalyzerActions actions, ImmutableHashSet<DiagnosticAnalyzer> unsuppressedAnalyzers)> GetAnalyzerActionsAsync( 2031var allAnalyzerActions = AnalyzerActions.Empty; 2039var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 2173AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2179var allActions = inheritedActions.AnalyzerActions.Append(in myActions); 2197var containerAnalyzerActions = containerActions.AnalyzerActions; 2198var actions = AnalyzerActions.Empty.Append(in containerAnalyzerActions, appendSymbolStartAndSymbolEndActions: false); 2207static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 2211return AnalyzerActions.Empty; 2217return AnalyzerActions.Empty; 2365var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false); 2445in AnalyzerActions coreActions, 2446in AnalyzerActions additionalActions, 2464AnalyzerActions analyzerActions, 2488protected override IGroupedAnalyzerActions CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (6)
20public static readonly GroupedAnalyzerActions Empty = new GroupedAnalyzerActions(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty, AnalyzerActions.Empty); 22private GroupedAnalyzerActions(ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)> groupedActionsAndAnalyzers, in AnalyzerActions analyzerActions) 30public AnalyzerActions AnalyzerActions { get; } 42public static GroupedAnalyzerActions Create(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions) 54public static GroupedAnalyzerActions Create(ImmutableArray<DiagnosticAnalyzer> analyzers, in AnalyzerActions analyzerActions) 76var newAnalyzerActions = AnalyzerActions.Append(groupedAnalyzerActions.AnalyzerActions);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
28public GroupedAnalyzerActionsForAnalyzer(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions, bool analyzerActionsNeedFiltering) 37public AnalyzerActions AnalyzerActions { get; }
DiagnosticAnalyzer\AnalyzerDriver.IGroupedAnalyzerActions.cs (2)
10protected abstract IGroupedAnalyzerActions CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions); 15AnalyzerActions AnalyzerActions { get; }
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
216/// <param name="actions"><see cref="AnalyzerActions"/> whose compilation start actions are to be executed.</param> 241/// <param name="actions"><see cref="AnalyzerActions"/> whose symbol start actions are to be executed.</param>
DiagnosticAnalyzer\AnalyzerManager.cs (4)
168public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 185public async ValueTask<AnalyzerActions> GetPerSymbolAnalyzerActionsAsync( 194var analyzerActions = await GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 205return AnalyzerActions.Empty;
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (12)
404public override AnalyzerActions GetAnalyzerActions() 406AnalyzerActions compilationActions = base.GetAnalyzerActions(); 407AnalyzerActions sessionActions = _sessionScope.GetAnalyzerActions(); 486private StrongBox<AnalyzerActions>? _analyzerActions; 490public virtual AnalyzerActions GetAnalyzerActions() 640protected StrongBox<AnalyzerActions> GetOrCreateAnalyzerActions() 642return InterlockedOperations.Initialize(ref _analyzerActions, static () => new StrongBox<AnalyzerActions>(AnalyzerActions.Empty)); 655public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 974public readonly AnalyzerActions Append(in AnalyzerActions otherActions, bool appendSymbolStartAndSymbolEndActions = true) 981AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);