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