7 types derived from CodeAnalysisMetricData
Metrics.Legacy (7)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
19private sealed class AssemblyMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (1)
14private sealed class EventMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (1)
14private sealed class FieldMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (1)
14private sealed class MethodMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
17private sealed class NamedTypeMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
17private sealed class NamespaceMetricData : CodeAnalysisMetricData
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (1)
14private sealed class PropertyMetricData : CodeAnalysisMetricData
55 references to CodeAnalysisMetricData
Metrics.Legacy (55)
src\RoslynAnalyzers\Tools\Metrics\MetricsOutputWriter.cs (4)
20public static void WriteMetricFile(ImmutableArray<(string, CodeAnalysisMetricData)> data, XmlTextWriter writer) 40CodeAnalysisMetricData metric = kvp.Item2; 52private static void WriteMetricData(CodeAnalysisMetricData data, XmlTextWriter writer) 155foreach (var child in data.Children)
src\RoslynAnalyzers\Tools\Metrics\Program.cs (8)
62(ImmutableArray<(string, CodeAnalysisMetricData)> metricDatas, ErrorCode exitCode) = await GetMetricDatasAsync(projectsOrSolutions, quiet, cancellationToken).ConfigureAwait(false); 264private static async Task<(ImmutableArray<(string, CodeAnalysisMetricData)>, ErrorCode)> GetMetricDatasAsync(List<string> projectsOrSolutions, bool quiet, CancellationToken cancellationToken) 266var builder = ImmutableArray.CreateBuilder<(string, CodeAnalysisMetricData)>(); 293return (ImmutableArray<(string, CodeAnalysisMetricData)>.Empty, ErrorCode.ComputeException); 319var metricData = await CodeAnalysisMetricData.ComputeAsync(compilation!.Assembly, new CodeMetricsAnalysisContext(compilation, CancellationToken.None)).ConfigureAwait(false); 352var metricData = await CodeAnalysisMetricData.ComputeAsync(compilation!.Assembly, new CodeMetricsAnalysisContext(compilation, CancellationToken.None)).ConfigureAwait(false);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (5)
27ImmutableArray<CodeAnalysisMetricData> children) 35ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(assembly), context).ConfigureAwait(false); 41ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(assembly), context); 45private static AssemblyMetricData ComputeFromChildren(IAssemblySymbol assembly, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 54foreach (CodeAnalysisMetricData child in children)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (19)
35ImmutableArray<CodeAnalysisMetricData> children) 114public ImmutableArray<CodeAnalysisMetricData> Children { get; } 173foreach (var child in Children) 185/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="compilation"/>. 188public static Task<CodeAnalysisMetricData> ComputeAsync(Compilation compilation, CancellationToken cancellationToken) 199/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="context"/>. 201public static Task<CodeAnalysisMetricData> ComputeAsync(CodeMetricsAnalysisContext context) 212/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="context"/>. 214public static CodeAnalysisMetricData ComputeSynchronously(CodeMetricsAnalysisContext context) 225/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="symbol"/> from the given <paramref name="compilation"/>. 228public static Task<CodeAnalysisMetricData> ComputeAsync(ISymbol symbol, Compilation compilation, CancellationToken cancellationToken) 244/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="symbol"/> from the given <paramref name="context"/>. 246public static Task<CodeAnalysisMetricData> ComputeAsync(ISymbol symbol, CodeMetricsAnalysisContext context) 260return Task.FromCanceled<CodeAnalysisMetricData>(context.CancellationToken); 265static async Task<CodeAnalysisMetricData> ComputeAsync(ISymbol symbol, CodeMetricsAnalysisContext context) 289/// Computes <see cref="CodeAnalysisMetricData"/> for the given <paramref name="symbol"/> from the given <paramref name="context"/>. 291public static CodeAnalysisMetricData ComputeSynchronously(ISymbol symbol, CodeMetricsAnalysisContext context) 325internal static async Task<ImmutableArray<CodeAnalysisMetricData>> ComputeAsync(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context) 333internal static ImmutableArray<CodeAnalysisMetricData> ComputeSynchronously(IEnumerable<ISymbol> children, CodeMetricsAnalysisContext context)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (3)
24ImmutableArray<CodeAnalysisMetricData> children) 39ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(@event), context); 41foreach (CodeAnalysisMetricData child in children)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (1)
25linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (1)
25linesOfCode, cyclomaticComplexity, depthOfInheritance, children: ImmutableArray<CodeAnalysisMetricData>.Empty)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (6)
27ImmutableArray<CodeAnalysisMetricData> children) 37ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(members, context).ConfigureAwait(false); 46ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(members, context); 67private static NamedTypeMetricData ComputeFromChildren(INamedTypeSymbol namedType, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 79foreach (CodeAnalysisMetricData child in children) 116foreach (CodeAnalysisMetricData fieldData in orderedFieldDatas)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (5)
26ImmutableArray<CodeAnalysisMetricData> children) 34ImmutableArray<CodeAnalysisMetricData> children = await ComputeAsync(GetChildSymbols(@namespace), context).ConfigureAwait(false); 40ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetChildSymbols(@namespace), context); 44private static NamespaceMetricData ComputeFromChildren(INamespaceSymbol @namespace, ImmutableArray<CodeAnalysisMetricData> children, CodeMetricsAnalysisContext context) 52foreach (CodeAnalysisMetricData child in children)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
24ImmutableArray<CodeAnalysisMetricData> children) 40ImmutableArray<CodeAnalysisMetricData> children = ComputeSynchronously(GetAccessors(property), context); 42foreach (CodeAnalysisMetricData child in children)