Class MetricLimitCheck
java.lang.Object
org.ek9lang.compiler.phase5.MetricLimitCheck
THE shared steps of every
Acceptable*OrError quality-metric check: find the symbol the metric belongs
to (MetricSymbolOf, one null policy), squirrel the measured integer (RecordMetric, one encoding) and
raise the error when it is over the limit (this). Hold them; do not re-derive a variant in a checker. One instance
per error code; the message of each limit keeps its own wording, so it is supplied by the caller. Was three static
helpers on this class (no-statics lane P2, 2026-10-29).-
Constructor Summary
ConstructorsConstructorDescriptionMetricLimitCheck(ErrorListener errorListener, ErrorListener.SemanticClassification code) -
Method Summary
Modifier and TypeMethodDescription(package private) voiderrorIfExceeds(ISymbol symbol, int value, int max, Supplier<String> message) Raise this check's code on the symbol's source token when the value is strictly above the maximum.
-
Constructor Details
-
MetricLimitCheck
MetricLimitCheck(ErrorListener errorListener, ErrorListener.SemanticClassification code)
-
-
Method Details
-
errorIfExceeds
-