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