An implementation of IMetricProvider<T> that is based on a CSharpSyntaxVisitor.
Inheritance
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, IMetricType 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. |