Class SanitizedInExpressionParamOrError

java.lang.Object
org.ek9lang.compiler.phase2.SanitizedInExpressionParamOrError
All Implemented Interfaces:
BiConsumer<EK9Parser.ExpressionParamContext, ErrorListener.SemanticClassification>

final class SanitizedInExpressionParamOrError extends Object implements BiConsumer<EK9Parser.ExpressionParamContext, ErrorListener.SemanticClassification>
Checks for inappropriate use of 'sanitized' in expression parameters. This checker rejects 'sanitized' in captures and call sites, as the keyword only belongs on function/method parameter definitions (entry points).

The "Rejection at the Source" philosophy means sanitization is a boundary concern specified at function/method parameter definitions, not at: - Captures (data already in trusted boundary) - Call sites (callee defines sanitization, not caller)