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