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 AbstractSafeSymbolMarker
iteratorTypeCheck, optionalTypeCheck, resultTypeCheckFields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExpressionSafeSymbolMarker(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(EK9Parser.ExpressionContext ctx, IScope scopeMadeSafe) Methods inherited from class AbstractSafeSymbolMarker
assessIsSetCallMethods inherited from class TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbolMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
ExpressionSafeSymbolMarker
protected ExpressionSafeSymbolMarker(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<EK9Parser.ExpressionContext, IScope>
-