Class PrimaryReferenceName
java.lang.Object
org.ek9lang.compiler.phase7.support.PrimaryReferenceName
- All Implemented Interfaces:
Function<EK9Parser.PrimaryReferenceContext, String>
public final class PrimaryReferenceName
extends Object
implements Function<EK9Parser.PrimaryReferenceContext, String>
THE IR name of a
this / super primary reference (EXPR-10): IRConstants.THIS or
IRConstants.SUPER. Every generator that loads, calls on or assigns through a primary reference holds one
and asks it - never re-derive it from the tokens or spell the literals.-
Constructor Details
-
PrimaryReferenceName
public PrimaryReferenceName()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<EK9Parser.PrimaryReferenceContext, String>- Parameters:
primaryReference- thethisorsuperreference- Returns:
IRConstants.THISorIRConstants.SUPER- Throws:
CompilerException- for any other primary reference (the grammar permits no other)
-