HalsteadAnalyzer class

Analyzes Dart source code to calculate Halstead complexity metrics.

Halstead metrics measure program vocabulary and volume based on the number of unique and total operators and operands in the source code. These metrics provide insight into program size and comprehension difficulty.

Constructors

HalsteadAnalyzer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

analyze(String sourceCode) HalsteadResult
Analyzes the given Dart source code and returns Halstead metrics.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited