2 instantiations of AnalyzerActions
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
655public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 985AnalyzerActions 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)
91protected ref readonly AnalyzerActions AnalyzerActions => ref _lazyAnalyzerActions; 183private AnalyzerActions _lazyAnalyzerActions; 1452private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1809in AnalyzerActions perSymbolActions, 2022private static async Task<(AnalyzerActions actions, ImmutableHashSet<DiagnosticAnalyzer> unsuppressedAnalyzers)> GetAnalyzerActionsAsync( 2030var allAnalyzerActions = AnalyzerActions.Empty; 2038var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 2172AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2178var allActions = inheritedActions.AnalyzerActions.Append(in myActions); 2196var containerAnalyzerActions = containerActions.AnalyzerActions; 2197var actions = AnalyzerActions.Empty.Append(in containerAnalyzerActions, appendSymbolStartAndSymbolEndActions: false); 2206static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 2210return AnalyzerActions.Empty; 2216return AnalyzerActions.Empty; 2364var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false); 2444in AnalyzerActions coreActions, 2445in AnalyzerActions additionalActions, 2463AnalyzerActions analyzerActions, 2487protected override IGroupedAnalyzerActions CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (6)
24AnalyzerActions.Empty); 29in AnalyzerActions analyzerActions) 40public AnalyzerActions AnalyzerActions { get; } 52public static GroupedAnalyzerActions Create(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions) 65public static GroupedAnalyzerActions Create(ImmutableArray<DiagnosticAnalyzer> analyzers, in AnalyzerActions analyzerActions) 88var 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)
215/// <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); 978public readonly AnalyzerActions Append(in AnalyzerActions otherActions, bool appendSymbolStartAndSymbolEndActions = true) 985AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);