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.
This can be a declaration or an assignment.
preFlowStatement
: (variableDeclaration | assignmentStatement) (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 RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionLhsFromPreFlowOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class TypedSymbolAccess
emitTypeNotResolvedError, getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
LhsFromPreFlowOrError
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<EK9Parser.PreFlowStatementContext, ISymbol>
-