2 instantiations of MetricType
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
134metricType ??= new MetricType 156currentMetricClass.Parent = new MetricType
22 references to MetricType
Microsoft.Gen.MetadataExtractor (22)
src\Generators\Microsoft.Gen.Metrics\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;
src\Generators\Microsoft.Gen.Metrics\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)
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (1)
16public MetricType? Parent;
src\Generators\Microsoft.Gen.Metrics\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)
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsHelpers.cs (1)
11internal static ReportedMetricClass[] MapToCommonModel(IReadOnlyList<MetricType> meteringClasses, string? rootNamespace)