Package org.ek9lang.compiler.phase5
Class MarkAppropriateSymbolsSafe
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.MarkAppropriateSymbolsSafe
- All Implemented Interfaces:
BiConsumer<EK9Parser.ExpressionContext,
IScope>
class MarkAppropriateSymbolsSafe
extends TypedSymbolAccess
implements BiConsumer<EK9Parser.ExpressionContext,IScope>
Once an expression has been assesed as being simple enough to process, this
consumer is called to mark the appropriate symbol(s) used in the expression as safe if the
appropriate methods are called.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MarkAppropriateSymbolsSafe
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(EK9Parser.ExpressionContext ctx, IScope scopeMadeSafe) Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
MarkAppropriateSymbolsSafe
protected MarkAppropriateSymbolsSafe(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<EK9Parser.ExpressionContext,
IScope>
-