Package org.ek9lang.compiler.phase5
Class FormOfComparator
java.lang.Object
org.ek9lang.compiler.phase5.FormOfComparator
- All Implemented Interfaces:
Predicate<EK9Parser.ExpressionContext>
When looking to calculate complexity of methods/functions it is important to
work out if parts of an expression are in some way conditional.
If they are then there is a form of branching going on 0 that adds complexity.
Whereas just a + b (while it is an expression does not add any branching).
-
Constructor Details
-
FormOfComparator
FormOfComparator()
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<EK9Parser.ExpressionContext>
-