Class FunctionInstance
java.lang.Object
org.ek9lang.compiler.phase7.support.FunctionInstance
THE lowering of a function CONSTRUCTED as a value to its singleton instance - hold one and use it. Whether a call
invokes a function instance loaded from a variable rather than a named singleton is
IsDelegateCall.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructedAsValue(IRGenerationContext stackContext, FunctionSymbol functionSymbol, String resultVariable, DebugInfo debugInfo) THE lowering of a function CONSTRUCTED as a value -countOf() of String, a parameterised generic function - to its singleton instance: aFUNCTION_INSTANCE, never an invocation.
-
Constructor Details
-
FunctionInstance
public FunctionInstance()
-
-
Method Details
-
constructedAsValue
public MemoryInstr constructedAsValue(IRGenerationContext stackContext, FunctionSymbol functionSymbol, String resultVariable, DebugInfo debugInfo) THE lowering of a function CONSTRUCTED as a value -countOf() of String, a parameterised generic function - to its singleton instance: aFUNCTION_INSTANCE, never an invocation. The type is named throughresolveTypeNameso that inside a Scenario-3 monomorphised generic body a conceptual parameterisation (Maker of T) is emitted as its concrete, code-generated counterpart. (ExprInstrGenerator.processFunctionConstructionis the expression-context copy that should delegate here.)
-