Open sandboxFocus

Struct SyntaxNodesCount

A metric that counts the number of syntax nodes in a declaration.

Namespace: Metalama.Extensions.Metrics
Assembly: Metalama.Extensions.Metrics.dll
Syntax
public struct SyntaxNodesCount : IMetric<IMemberOrNamedType>, IMetric<INamespace>, IMetric<ICompilation>, IMetric
Remarks

This metric provides a more accurate measure of code complexity than line counts, as it counts actual syntax nodes in the syntax tree.

Use this metric with IDeclaration.Metrics<TExtensible>(TExtensible).Get<TExtension>().

Properties

Name Description
Value

Gets the total number of syntax nodes.

Methods

Name Description
ToString()

See Also