4 instantiations of CodeMetricsAnalysisContext
Metrics (4)
Program.cs (2)
319
var metricData = await CodeAnalysisMetricData.ComputeAsync(compilation!.Assembly, new
CodeMetricsAnalysisContext
(compilation, CancellationToken.None)).ConfigureAwait(false);
352
var metricData = await CodeAnalysisMetricData.ComputeAsync(compilation!.Assembly, new
CodeMetricsAnalysisContext
(compilation, CancellationToken.None)).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (2)
195
return ComputeAsync(compilation.Assembly, new
CodeMetricsAnalysisContext
(compilation, cancellationToken));
240
return ComputeAsync(symbol, new
CodeMetricsAnalysisContext
(compilation, cancellationToken));
24 references to CodeMetricsAnalysisContext
Metrics (24)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (3)
33
internal static async Task<AssemblyMetricData> ComputeAsync(IAssemblySymbol assembly,
CodeMetricsAnalysisContext
context)
39
internal static AssemblyMetricData ComputeSynchronously(IAssemblySymbol assembly,
CodeMetricsAnalysisContext
context)
45
private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (7)
201
public static Task<CodeAnalysisMetricData> ComputeAsync(
CodeMetricsAnalysisContext
context)
214
public static CodeAnalysisMetricData ComputeSynchronously(
CodeMetricsAnalysisContext
context)
246
public static Task<CodeAnalysisMetricData> ComputeAsync(ISymbol symbol,
CodeMetricsAnalysisContext
context)
265
static async Task<CodeAnalysisMetricData> ComputeAsync(ISymbol symbol,
CodeMetricsAnalysisContext
context)
291
public static CodeAnalysisMetricData ComputeSynchronously(ISymbol symbol,
CodeMetricsAnalysisContext
context)
325
internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children,
CodeMetricsAnalysisContext
context)
333
internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (1)
30
internal static EventMetricData Compute(IEventSymbol @event,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (1)
29
internal static FieldMetricData Compute(IFieldSymbol field,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (1)
29
internal static MethodMetricData Compute(IMethodSymbol method,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (4)
33
internal static async Task<NamedTypeMetricData> ComputeAsync(INamedTypeSymbol namedType,
CodeMetricsAnalysisContext
context)
42
internal static NamedTypeMetricData ComputeSynchronously(INamedTypeSymbol namedType,
CodeMetricsAnalysisContext
context)
51
private static IEnumerable<ISymbol> GetMembers(INamedTypeSymbol namedType,
CodeMetricsAnalysisContext
context)
67
private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (3)
32
internal static async Task<NamespaceMetricData> ComputeAsync(INamespaceSymbol @namespace,
CodeMetricsAnalysisContext
context)
38
internal static NamespaceMetricData ComputeSynchronously(INamespaceSymbol @namespace,
CodeMetricsAnalysisContext
context)
44
private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (1)
30
internal static PropertyMetricData Compute(IPropertySymbol property,
CodeMetricsAnalysisContext
context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
65
internal static long GetLinesOfCode(ImmutableArray<SyntaxReference> declarations, ISymbol symbol,
CodeMetricsAnalysisContext
context)
179
internal static SyntaxNode GetTopmostSyntaxNodeForDeclaration(SyntaxReference declaration, ISymbol declaredSymbol,
CodeMetricsAnalysisContext
context)
198
CodeMetricsAnalysisContext
context)