2 instantiations of AnalyzerActions
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
659public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 985AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);
57 references to AnalyzerActions
Microsoft.CodeAnalysis (53)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (2)
14internal static readonly AnalyzerActionCounts Empty = new AnalyzerActionCounts(in AnalyzerActions.Empty); 16internal AnalyzerActionCounts(in AnalyzerActions analyzerActions) :
DiagnosticAnalyzer\AnalyzerDriver.cs (21)
90protected ref readonly AnalyzerActions AnalyzerActions => ref _lazyAnalyzerActions; 182private AnalyzerActions _lazyAnalyzerActions; 1371private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1718in AnalyzerActions perSymbolActions, 1930private static async Task<(AnalyzerActions actions, ImmutableHashSet<DiagnosticAnalyzer> unsuppressedAnalyzers)> GetAnalyzerActionsAsync( 1936var allAnalyzerActions = AnalyzerActions.Empty; 1944var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor).ConfigureAwait(false); 2076AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer).ConfigureAwait(false); 2082var allActions = inheritedActions.AnalyzerActions.Append(in myActions); 2100var containerAnalyzerActions = containerActions.AnalyzerActions; 2101var actions = AnalyzerActions.Empty.Append(in containerAnalyzerActions, appendSymbolStartAndSymbolEndActions: false); 2110static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer) 2114return AnalyzerActions.Empty; 2120return AnalyzerActions.Empty; 2265var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, executor).ConfigureAwait(false); 2343in AnalyzerActions coreActions, 2344in AnalyzerActions additionalActions, 2362AnalyzerActions analyzerActions, 2386protected 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)
287/// <param name="actions"><see cref="AnalyzerActions"/> whose compilation start actions are to be executed.</param> 311/// <param name="actions"><see cref="AnalyzerActions"/> whose symbol start actions are to be executed.</param>
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
152var symbolEndActions = symbolAnalysisScope.GetAnalyzerActions(_analyzer);
DiagnosticAnalyzer\AnalyzerManager.cs (4)
157public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor) 174public async ValueTask<AnalyzerActions> GetPerSymbolAnalyzerActionsAsync( 180var analyzerActions = await GetAnalyzerActionsAsync(analyzer, analyzerExecutor).ConfigureAwait(false); 191return AnalyzerActions.Empty;
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (13)
405public override AnalyzerActions GetAnalyzerActions(DiagnosticAnalyzer analyzer) 407AnalyzerActions compilationActions = base.GetAnalyzerActions(analyzer); 408AnalyzerActions sessionActions = _sessionScope.GetAnalyzerActions(analyzer); 493private readonly ConcurrentDictionary<DiagnosticAnalyzer, StrongBox<AnalyzerActions>> _analyzerActions = new ConcurrentDictionary<DiagnosticAnalyzer, StrongBox<AnalyzerActions>>(); 495public virtual AnalyzerActions GetAnalyzerActions(DiagnosticAnalyzer analyzer) 644protected StrongBox<AnalyzerActions> GetOrCreateAnalyzerActions(DiagnosticAnalyzer analyzer) 646return _analyzerActions.GetOrAdd(analyzer, _ => new StrongBox<AnalyzerActions>(AnalyzerActions.Empty)); 659public 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);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
3476var first = AnalyzerActions.Empty; 3477var second = AnalyzerActions.Empty;