Class SanitizedRequired
java.lang.Object
org.ek9lang.compiler.support.SanitizedRequired
THE reading and marking of
SANITIZED_REQUIRED: the as sanitized modifier on a parameter (and, by
propagation, on an expression that is one of them). Seven places read the squirrel two ways - the front end as
!= null, the IR prologue as TRUE_VALUE.equals - and only TRUE_VALUE is ever written, so
both said the same; they now ask here (front-end rationalisation F09/B-8). The marker means "the RECEIVER cleans
this parameter", so it is read wherever a call, override, assignment or text/service signature must honour it.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRequiredOn(ISymbol symbol) True when the symbol is a parameter declaredas sanitized, or an expression derived from one.static voidmarkRequiredOn(ISymbol symbol) Mark the symbol as one the receiver must clean.
-
Method Details
-
isRequiredOn
True when the symbol is a parameter declaredas sanitized, or an expression derived from one. -
markRequiredOn
Mark the symbol as one the receiver must clean.
-