Class ExpressionSafeSymbolMarker
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.AbstractSafeSymbolMarker
org.ek9lang.compiler.phase5.ExpressionSafeSymbolMarker
- All Implemented Interfaces:
BiConsumer<EK9Parser.ExpressionContext,
IScope>
class ExpressionSafeSymbolMarker
extends AbstractSafeSymbolMarker
implements BiConsumer<EK9Parser.ExpressionContext,IScope>
Once an expression has been assessed 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.phase5.AbstractSafeSymbolMarker
iteratorTypeCheck, optionalTypeCheck, resultTypeCheck
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExpressionSafeSymbolMarker
(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.phase5.AbstractSafeSymbolMarker
assessIsSetCall
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
-
ExpressionSafeSymbolMarker
protected ExpressionSafeSymbolMarker(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<EK9Parser.ExpressionContext,
IScope>
-