Class ClonedBodiesInAggregateParts
java.lang.Object
org.ek9lang.compiler.phase7.support.ClonedBodiesInAggregateParts
- All Implemented Interfaces:
OperationBodyLocator
THE
OperationBodyLocator of the members of a monomorphised COPY, matched to their declarations in the
generic's aggregate parts by source token: phase-6 type substitution clones each method and keeps its source token
(the same object), so the token is what still links a clone to the declaration it came from.-
Constructor Summary
ConstructorsConstructorDescriptionClonedBodiesInAggregateParts(ParsedModule genericParsedModule, EK9Parser.AggregatePartsContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionbodyOf(MethodSymbol method) The written body ofmethod, or empty when it has none to generate from.
-
Constructor Details
-
ClonedBodiesInAggregateParts
public ClonedBodiesInAggregateParts(ParsedModule genericParsedModule, EK9Parser.AggregatePartsContext ctx) - Parameters:
genericParsedModule- the module that recorded the symbols of the generic's declarationsctx- the generic's aggregate parts, null when it has no body
-
-
Method Details
-
bodyOf
Description copied from interface:OperationBodyLocatorThe written body ofmethod, or empty when it has none to generate from.- Specified by:
bodyOfin interfaceOperationBodyLocator
-