Class AcceptableStatementCountOrError
java.lang.Object
org.ek9lang.compiler.phase5.AcceptableStatementCountOrError
- All Implemented Interfaces:
Consumer<org.antlr.v4.runtime.tree.ParseTree>
class AcceptableStatementCountOrError
extends Object
implements Consumer<org.antlr.v4.runtime.tree.ParseTree>
Checks statement count at function/method/operator exit and emits error if too many.
Long functions are hard to read and maintain - this enforces NCSS (Non-Commenting Source
Statement) limits that force developers to extract functions rather than writing
excessively long methods.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptableStatementCountOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, StatementCounter statementCounter) -
Method Summary
-
Constructor Details
-
AcceptableStatementCountOrError
AcceptableStatementCountOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, StatementCounter statementCounter)
-
-
Method Details
-
accept
-