Class LhsFromPreFlowOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.common.LhsFromPreFlowOrError
- All Implemented Interfaces:
Function<EK9Parser.PreFlowStatementContext,
ISymbol>
public final class LhsFromPreFlowOrError
extends TypedSymbolAccess
implements Function<EK9Parser.PreFlowStatementContext,ISymbol>
Access the Symbol for the lhs of the preflow statement.
i.e. what is the subject of the preflow.
Now this can vary quite widely, because we have declarations, assignments and guards.
preFlowStatement : (variableDeclaration | assignmentStatement | guardExpression) (WITH|THEN)? ;
While this is in the common package, it does expect symbols to be defined and 'typed'. So use after phase three onwards.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsConstructorDescriptionLhsFromPreFlowOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
LhsFromPreFlowOrError
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.PreFlowStatementContext,
ISymbol>
-