2 instantiations of MetricType
Microsoft.Gen.Metrics (2)
Parser.cs (2)
134
metricType ??= new
MetricType
156
currentMetricClass.Parent = new
MetricType
21 references to MetricType
Microsoft.Gen.Metrics (21)
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;
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)
Model\MetricType.cs (1)
16
public
MetricType
? Parent;
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)