Class TraitDfnGenerator
java.lang.Object
org.ek9lang.compiler.phase7.AbstractDfnGenerator
org.ek9lang.compiler.phase7.AggregateDfnGenerator
org.ek9lang.compiler.phase7.TraitDfnGenerator
- All Implemented Interfaces:
Function<EK9Parser.TraitDeclarationContext,
IRConstruct>
final class TraitDfnGenerator
extends AggregateDfnGenerator
implements Function<EK9Parser.TraitDeclarationContext,IRConstruct>
Creates the appropriate IR Construct for a trait declaration.
Follows the same pattern as ProgramCreator and ClassCreator.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.phase7.AbstractDfnGenerator
notImplicitSuper, operationDfnGenerator, stackContext, voidStr
-
Constructor Summary
ConstructorsConstructorDescriptionTraitDfnGenerator
(IRGenerationContext stackContext) Constructor using stack context - the single source of state. -
Method Summary
Methods inherited from class org.ek9lang.compiler.phase7.AggregateDfnGenerator
createFieldDeclarations, createInitializationOperations, createOperationsForAggregateParts, processAggregate
Methods inherited from class org.ek9lang.compiler.phase7.AbstractDfnGenerator
createCallMetaDataExtractor, createDebugInfoCreator, createInitOperation, createInstanceInitOperation, getParsedModule, newPerConstructContext, newSyntheticInitOperation, processAsMethodOrOperator, processPropertiesForInstanceInit, processSyntheticConstructor
-
Constructor Details
-
TraitDfnGenerator
TraitDfnGenerator(IRGenerationContext stackContext) Constructor using stack context - the single source of state.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.TraitDeclarationContext,
IRConstruct>
-