Open sandboxFocus

Class SyntaxMetricProvider<T>

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

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
Type Parameters
Name Description
T

Type of the metric.

Constructors

Name Description
SyntaxMetricProvider(BaseVisitor)

Methods

Name Description
ComputeMetricForMember(IMember)

Computes the metric for a member.

ComputeMetricForType(INamedType)

Computes the metric for a whole type.