2 instantiations of AnalyzerActionCounts
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (1)
14
internal static readonly AnalyzerActionCounts Empty = new
AnalyzerActionCounts
(in AnalyzerActions.Empty);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2271
return new
AnalyzerActionCounts
(in analyzerActions);
17 references to AnalyzerActionCounts
Microsoft.CodeAnalysis (17)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (5)
33
private readonly Dictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
> _analyzerActionCounts;
48
_analyzerActionCounts = new Dictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
>(analyzers.Length);
187
public void ApplySuppressionsAndStoreAnalysisResult(AnalysisScope analysisScope, AnalyzerDriver driver, Compilation compilation, Func<DiagnosticAnalyzer,
AnalyzerActionCounts
> getAnalyzerActionCounts)
595
if (!_analyzerActionCounts.TryGetValue(analyzer, out
var
actionCounts))
597
actionCounts =
AnalyzerActionCounts
.Empty;
DiagnosticAnalyzer\AnalyzerActionCounts.cs (1)
14
internal static readonly
AnalyzerActionCounts
Empty = new AnalyzerActionCounts(in AnalyzerActions.Empty);
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
2257
internal async Task<
AnalyzerActionCounts
> GetAnalyzerActionCountsAsync(DiagnosticAnalyzer analyzer, CompilationOptions compilationOptions, CancellationToken cancellationToken)
2262
return
AnalyzerActionCounts
.Empty;
2268
return
AnalyzerActionCounts
.Empty;
DiagnosticAnalyzer\AnalyzerTelemetry.cs (1)
138
internal AnalyzerTelemetryInfo(
AnalyzerActionCounts
actionCounts, int suppressionActionCounts, TimeSpan executionTime)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (7)
639
Func<DiagnosticAnalyzer,
AnalyzerActionCounts
> getAnalyzerActionCounts = analyzer => analyzerActionCounts[analyzer];
784
static async Task<(ImmutableDictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
> analyzerActionCounts, bool hasAnyActionsRequiringCompilationEvents)> getAnalyzerActionCountsAsync(
793
var builder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer,
AnalyzerActionCounts
>();
797
var
actionCounts = await driver.GetAnalyzerActionCountsAsync(analyzer, compilation.Options, cancellationToken).ConfigureAwait(false);
809
ImmutableDictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
> analyzerActionCounts)
1272
var
actionCounts = await GetAnalyzerActionCountsAsync(analyzer, cancellationToken).ConfigureAwait(false);
1286
private async Task<
AnalyzerActionCounts
> GetAnalyzerActionCountsAsync(DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)