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