7 instantiations of MetricType
Microsoft.Gen.Metrics (2)
Parser.cs (2)
135
metricType ??= new
MetricType
157
currentMetricClass.Parent = new
MetricType
Microsoft.Gen.Metrics.Unit.Tests (5)
EmitterTests.cs (4)
63
var metricClass = new
MetricType
102
var metricClass = new
MetricType
142
var metricClass = new
MetricType
180
var metricClass = new
MetricType
MetricTypeTests.cs (1)
14
var instance = new
MetricType
();
30 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)
58
public IReadOnlyList<
MetricType
> GetMetricClasses(IEnumerable<TypeDeclarationSyntax> types)
63
return Array.Empty<
MetricType
>();
66
var results = new List<
MetricType
>();
77
MetricType
? metricType = null;
146
MetricType
currentMetricClass = metricType;
191
private static void UpdateMetricKeywordIfRequired(TypeDeclarationSyntax? typeDeclaration,
MetricType
metricType)
Microsoft.Gen.Metrics.Unit.Tests (9)
EmitterTests.cs (8)
63
var
metricClass = new MetricType
94
emitter.EmitMetrics(new List<
MetricType
> { metricClass }, cancellationToken: default));
102
var
metricClass = new MetricType
134
emitter.Emit(new List<
MetricType
> { metricClass }, cancellationToken: default));
142
var
metricClass = new MetricType
172
var result = emitter.Emit(new List<
MetricType
> { metricClass }, cancellationToken: default);
180
var
metricClass = new MetricType
210
var result = emitter.Emit(new List<
MetricType
> { metricClass }, cancellationToken: default);
MetricTypeTests.cs (1)
14
var
instance = new MetricType();