Package org.ek9lang.compiler.phase3
Class SymbolFromContextOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.SymbolFromContextOrError
final class SymbolFromContextOrError
extends TypedSymbolAccess
implements Function<org.antlr.v4.runtime.ParserRuleContext,ISymbol>
Returns the appropriate symbol from the symbol and scope management component.
But if it is null issues a semantic error.
Not this is not looking up through scopes or anything, just looking directly as what symbol
(if any) has been recorded against the context passed in.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionSymbolFromContextOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
SymbolFromContextOrError
SymbolFromContextOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details