Package org.ek9lang.compiler.phase1
Class DynamicVariableCaptureOrError
java.lang.Object
org.ek9lang.compiler.phase1.DynamicVariableCaptureOrError
- All Implemented Interfaces:
Consumer<EK9Parser.DynamicVariableCaptureContext>
final class DynamicVariableCaptureOrError
extends Object
implements Consumer<EK9Parser.DynamicVariableCaptureContext>
Dynamic Variables when captured have to either be identifiers in their own right,
but if they are some type of expression, method call, etc. Then they must use a parameter name.
This is so when the dynamic method/class is created it is possible for the compiler to
declare the properties/fields to align with those being captured.
-
Constructor Details
-
DynamicVariableCaptureOrError
DynamicVariableCaptureOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.DynamicVariableCaptureContext>
-