2 instantiations of AnalyzerActions
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
672public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 1002AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);
56 references to AnalyzerActions
Microsoft.CodeAnalysis (52)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (2)
14internal static readonly AnalyzerActionCounts Empty = new AnalyzerActionCounts(in AnalyzerActions.Empty); 16internal AnalyzerActionCounts(in AnalyzerActions analyzerActions) :
DiagnosticAnalyzer\AnalyzerDriver.cs (21)
95protected ref readonly AnalyzerActions AnalyzerActions => ref _lazyAnalyzerActions; 187private AnalyzerActions _lazyAnalyzerActions; 1463private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in AnalyzerActions analyzerActions) 1820in AnalyzerActions perSymbolActions, 2038private static async Task<(AnalyzerActions actions, ImmutableHashSet<DiagnosticAnalyzer> unsuppressedAnalyzers)> GetAnalyzerActionsAsync( 2046var allAnalyzerActions = AnalyzerActions.Empty; 2054var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 2188AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2194var allActions = inheritedActions.AnalyzerActions.Append(in myActions); 2212var containerAnalyzerActions = containerActions.AnalyzerActions; 2213var actions = AnalyzerActions.Empty.Append(in containerAnalyzerActions, appendSymbolStartAndSymbolEndActions: false); 2222static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 2226return AnalyzerActions.Empty; 2232return AnalyzerActions.Empty; 2380var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false); 2460in AnalyzerActions coreActions, 2461in AnalyzerActions additionalActions, 2479AnalyzerActions analyzerActions, 2503protected override IGroupedAnalyzerActions CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (6)
25AnalyzerActions.Empty); 30in AnalyzerActions analyzerActions) 41public AnalyzerActions AnalyzerActions { get; } 53public static GroupedAnalyzerActions Create(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions) 66public static GroupedAnalyzerActions Create(ImmutableArray<DiagnosticAnalyzer> analyzers, in AnalyzerActions analyzerActions) 89var 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)
264/// <param name="actions"><see cref="AnalyzerActions"/> whose compilation start actions are to be executed.</param> 312/// <param name="actions"><see cref="AnalyzerActions"/> whose symbol start actions are to be executed.</param>
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
164var symbolEndActions = symbolAnalysisScope.GetAnalyzerActions();
DiagnosticAnalyzer\AnalyzerManager.cs (4)
169public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 186public async ValueTask<AnalyzerActions> GetPerSymbolAnalyzerActionsAsync( 195var analyzerActions = await GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 206return AnalyzerActions.Empty;
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (12)
414public override AnalyzerActions GetAnalyzerActions() 416AnalyzerActions compilationActions = base.GetAnalyzerActions(); 417AnalyzerActions sessionActions = _sessionScope.GetAnalyzerActions(); 496private StrongBox<AnalyzerActions>? _analyzerActions; 500public virtual AnalyzerActions GetAnalyzerActions() 657protected StrongBox<AnalyzerActions> GetOrCreateAnalyzerActions() 659return InterlockedOperations.Initialize(ref _analyzerActions, static () => new StrongBox<AnalyzerActions>(AnalyzerActions.Empty)); 672public static readonly AnalyzerActions Empty = new AnalyzerActions(concurrent: false); 995public readonly AnalyzerActions Append(in AnalyzerActions otherActions, bool appendSymbolStartAndSymbolEndActions = true) 1002AnalyzerActions actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
3570var first = AnalyzerActions.Empty; 3571var second = AnalyzerActions.Empty;