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