Class TraitDfnGenerator
java.lang.Object
org.ek9lang.compiler.phase7.AbstractDfnGenerator
org.ek9lang.compiler.phase7.TraitDfnGenerator
- All Implemented Interfaces:
Function<EK9Parser.TraitDeclarationContext,
IRConstruct>
final class TraitDfnGenerator
extends AbstractDfnGenerator
implements Function<EK9Parser.TraitDeclarationContext,IRConstruct>
Creates the appropriate IR Construct for a trait declaration.
Follows the same pattern as ProgramCreator and ClassCreator.
-
Constructor Details
-
TraitDfnGenerator
TraitDfnGenerator(ParsedModule parsedModule, CompilerFlags compilerFlags)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.TraitDeclarationContext,
IRConstruct>
-