Package org.ek9lang.compiler.phase3
Class ThisOrSuperOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ThisOrSuperOrError
- All Implemented Interfaces:
Consumer<EK9Parser.PrimaryReferenceContext>
final class ThisOrSuperOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.PrimaryReferenceContext>
Checks and assigns type a 'this' or 'super' symbol, but only if it valid.
But allowing applications, functions and programs to refer to themselves might be useful in
passing themselves as parameters to other functions in some way.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionThisOrSuperOrError
(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Checks that this/super passed in is a suitable genus. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
ThisOrSuperOrError
ThisOrSuperOrError(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Checks that this/super passed in is a suitable genus.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.PrimaryReferenceContext>
-