Class OperationDfnGenerator
java.lang.Object
org.ek9lang.compiler.phase7.OperationDfnGenerator
- All Implemented Interfaces:
BiConsumer<Operation,
EK9Parser.OperationDetailsContext>
final class OperationDfnGenerator
extends Object
implements BiConsumer<Operation,EK9Parser.OperationDetailsContext>
Deals with the generation of the IR for OperationDetails.
This is used quite widely by many of the constructs defined in the grammar.
methods, operators, etc. In various construct types.
But the context for this is only for methods/operators that do actually have processing defined. Note, that in Ek9 it is possible to use the 'default' reserved word to get EK9 to generate the appropriate functionality. For example '?' _isSet can be auto generated if the properties on the aggregate have the '?' _isSet Operator.
This processing does NOT deal with that.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationDfnGenerator
(ParsedModule parsedModule, CompilerFlags compilerFlags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Operation operation, EK9Parser.OperationDetailsContext ctx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
OperationDfnGenerator
OperationDfnGenerator(ParsedModule parsedModule, CompilerFlags compilerFlags)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<Operation,
EK9Parser.OperationDetailsContext>
-