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