1 write to WellKnownTypeProvider
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
23
WellKnownTypeProvider
= WellKnownTypeProvider.GetOrCreate(compilation);
15 references to WellKnownTypeProvider
Metrics.Legacy (15)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
56
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, child.CoupledNamedTypes);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.EventMetricData.cs (2)
37
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, @event.Type);
43
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, child.CoupledNamedTypes);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.FieldMetricData.cs (1)
36
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, field.Type);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.MethodMetricData.cs (2)
36
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, method.Parameters);
39
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, method.ReturnType);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (1)
81
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, child.CoupledNamedTypes);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
54
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, child.CoupledNamedTypes);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.PropertyMetricData.cs (3)
37
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, property.Parameters);
38
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, property.Type);
44
MetricsHelper.AddCoupledNamedTypes(coupledTypesBuilder, context.
WellKnownTypeProvider
, child.CoupledNamedTypes);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (4)
258
AddCoupledNamedTypesCore(builder, typeInfo.Type, context.
WellKnownTypeProvider
);
300
AddCoupledNamedTypesCore(builder, operation.Type, context.
WellKnownTypeProvider
);
306
AddCoupledNamedTypesCore(builder, memberReference.Member.ContainingType, context.
WellKnownTypeProvider
);
311
AddCoupledNamedTypesCore(builder, invocation.TargetMethod.ContainingType, context.
WellKnownTypeProvider
);