MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​MetricsSyntax­Metric­Provider<T>
Open sandboxFocus

SyntaxMetricProvider<T> Class

An implementation of IMetricProvider<T> that is based on a Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor.

Inheritance
System.Object
SyntaxMetricProvider<T>
Namespace: Metalama.Framework.Engine.Metrics
Assembly: Metalama.Framework.Sdk.dll
Syntax
public abstract class SyntaxMetricProvider<T> : MetricProvider<T>, IMetricProvider<T>, IProjectService, IService where T : struct, IMetric, ValueType
Type Parameters
Name Description
T

Type of the metric.

Constructors

Name Description
SyntaxMetricProvider(SyntaxMetricProvider<T>.BaseVisitor)

Methods

Name Description
ComputeMetricForMember(IMember)
ComputeMetricForType(INamedType)