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