2 instantiations of MetricType
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
134
metricType ??= new
MetricType
156
currentMetricClass.Parent = new
MetricType
22 references to MetricType
Microsoft.Gen.MetadataExtractor (22)
src\Generators\Microsoft.Gen.Metrics\Emitter.cs (8)
21
public string EmitMetrics(IReadOnlyList<
MetricType
> metricTypes, CancellationToken cancellationToken)
23
Dictionary<string, List<
MetricType
>> metricClassesDict = [];
24
foreach (
var
cl in metricTypes)
49
private void GenTypeByNamespace(string nspace, IEnumerable<
MetricType
> metricTypes, CancellationToken cancellationToken)
59
foreach (
var
metricClass in metricTypes.OrderBy(static x => x.Name))
80
private void GenType(
MetricType
metricType, string nspace)
101
private void GenInstrumentCreateMethods(
MetricType
metricType, string nspace)
103
var
parent = metricType.Parent;
src\Generators\Microsoft.Gen.Metrics\MetricFactoryEmitter.cs (6)
17
public string Emit(IReadOnlyList<
MetricType
> metricClasses, CancellationToken cancellationToken)
19
Dictionary<string, List<
MetricType
>> metricClassesDict = [];
20
foreach (
var
cl in metricClasses)
60
private void GenMetricFactoryByNamespace(string nspace, IEnumerable<
MetricType
> metricClasses, CancellationToken cancellationToken)
73
foreach (
var
metricClass in metricClasses.OrderBy(static x => x.Name))
98
private void GenMetricFactory(
MetricType
metricType, string nspace)
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (1)
16
public
MetricType
? Parent;
src\Generators\Microsoft.Gen.Metrics\Parser.cs (6)
57
public IReadOnlyList<
MetricType
> GetMetricClasses(IEnumerable<TypeDeclarationSyntax> types)
62
return Array.Empty<
MetricType
>();
65
var results = new List<
MetricType
>();
76
MetricType
? metricType = null;
145
MetricType
currentMetricClass = metricType;
190
private static void UpdateMetricKeywordIfRequired(TypeDeclarationSyntax? typeDeclaration,
MetricType
metricType)
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsHelpers.cs (1)
11
internal static ReportedMetricClass[] MapToCommonModel(IReadOnlyList<
MetricType
> meteringClasses, string? rootNamespace)