Package org.ek9lang.compiler.phase5
Class GetGuardVariable
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.GetGuardVariable
- All Implemented Interfaces:
Function<EK9Parser.PreFlowStatementContext,
Optional<ISymbol>>
final class GetGuardVariable
extends TypedSymbolAccess
implements Function<EK9Parser.PreFlowStatementContext,Optional<ISymbol>>
Extracts the guard variable if there is a guard expression.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionGetGuardVariable
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
GetGuardVariable
GetGuardVariable(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.PreFlowStatementContext,
Optional<ISymbol>>
-