Class EnumerationTypePosition
java.lang.Object
org.ek9lang.compiler.phase3.EnumerationTypePosition
- All Implemented Interfaces:
Predicate<EK9Parser.ExpressionContext>
final class EnumerationTypePosition
extends Object
implements Predicate<EK9Parser.ExpressionContext>
THE places an enumeration TYPE (base or constrained,
IsEnumerationType) may
stand as an expression: the source of for x in Season and of cat Season, where the type means its
values, and the receiver of an operator, whose own check reports E07630 ($Season, Season > x, either
side of <? >? ?:). Everywhere else - an argument, an assignment, a list element, an interpolated
${Season}, the right of + or of in - it is a value, and a type is never a value (E09010, as for
any other type). Before this the enumeration TYPE was let through everywhere and compiled to a VerifyError (JVM) or
an internal compiler error (native) - D102.-
Constructor Details
-
EnumerationTypePosition
EnumerationTypePosition()
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<EK9Parser.ExpressionContext>
-