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