2 instantiations of AnalyzerActions
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
662
public static readonly AnalyzerActions Empty = new
AnalyzerActions
(concurrent: false);
992
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)
90
protected ref readonly
AnalyzerActions
AnalyzerActions => ref _lazyAnalyzerActions;
182
private
AnalyzerActions
_lazyAnalyzerActions;
1451
private static ImmutableArray<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)> MakeSymbolActionsByKind(in
AnalyzerActions
analyzerActions)
1808
in
AnalyzerActions
perSymbolActions,
2021
private static async Task<(
AnalyzerActions
actions, ImmutableHashSet<DiagnosticAnalyzer> unsuppressedAnalyzers)> GetAnalyzerActionsAsync(
2029
var
allAnalyzerActions =
AnalyzerActions
.Empty;
2037
var
analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
2171
AnalyzerActions
myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2177
var
allActions = inheritedActions.AnalyzerActions.Append(in myActions);
2195
var
containerAnalyzerActions = containerActions.AnalyzerActions;
2196
var
actions =
AnalyzerActions
.Empty.Append(in containerAnalyzerActions, appendSymbolStartAndSymbolEndActions: false);
2205
static async ValueTask<
AnalyzerActions
> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
2209
return
AnalyzerActions
.Empty;
2215
return
AnalyzerActions
.Empty;
2363
var
analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false);
2443
in
AnalyzerActions
coreActions,
2444
in
AnalyzerActions
additionalActions,
2462
AnalyzerActions
analyzerActions,
2486
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)
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.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)
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()
647
protected StrongBox<
AnalyzerActions
> GetOrCreateAnalyzerActions()
649
return InterlockedOperations.Initialize(ref _analyzerActions, static () => new StrongBox<
AnalyzerActions
>(
AnalyzerActions
.Empty));
662
public static readonly
AnalyzerActions
Empty = new AnalyzerActions(concurrent: false);
985
public readonly
AnalyzerActions
Append(in
AnalyzerActions
otherActions, bool appendSymbolStartAndSymbolEndActions = true)
992
AnalyzerActions
actions = new AnalyzerActions(concurrent: _concurrent || otherActions.Concurrent);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
3569
var
first =
AnalyzerActions
.Empty;
3570
var
second =
AnalyzerActions
.Empty;