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)
2371
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, CancellationToken cancellationToken)
594
if (!_analyzerActionCounts.TryGetValue(analyzer, out
var
actionCounts))
596
actionCounts =
AnalyzerActionCounts
.Empty;
DiagnosticAnalyzer\AnalyzerActionCounts.cs (1)
14
internal static readonly
AnalyzerActionCounts
Empty = new AnalyzerActionCounts(in AnalyzerActions.Empty);
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
2358
internal async Task<
AnalyzerActionCounts
> GetAnalyzerActionCountsAsync(DiagnosticAnalyzer analyzer, CompilationOptions compilationOptions, AnalysisScope analysisScope, CancellationToken cancellationToken)
2362
return
AnalyzerActionCounts
.Empty;
2368
return
AnalyzerActionCounts
.Empty;
DiagnosticAnalyzer\AnalyzerTelemetry.cs (1)
138
internal AnalyzerTelemetryInfo(
AnalyzerActionCounts
actionCounts, int suppressionActionCounts, TimeSpan executionTime)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (7)
737
Func<DiagnosticAnalyzer,
AnalyzerActionCounts
> getAnalyzerActionCounts = analyzer => analyzerActionCounts[analyzer];
830
static async Task<(ImmutableDictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
> analyzerActionCounts, bool hasAnyActionsRequiringCompilationEvents)> getAnalyzerActionCountsAsync(
839
var builder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer,
AnalyzerActionCounts
>();
843
var
actionCounts = await driver.GetAnalyzerActionCountsAsync(analyzer, compilation.Options, analysisScope, cancellationToken).ConfigureAwait(false);
855
ImmutableDictionary<DiagnosticAnalyzer,
AnalyzerActionCounts
> analyzerActionCounts)
1282
var
actionCounts = await GetAnalyzerActionCountsAsync(analyzer, cancellationToken).ConfigureAwait(false);
1296
private async Task<
AnalyzerActionCounts
> GetAnalyzerActionCountsAsync(DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)