Class PrepareForCodegenVisitor

  • All Implemented Interfaces:
    RuleExpressionVisitor<RuleExpression>

    public final class PrepareForCodegenVisitor
    extends RewriteRuleExpressionVisitor
    Visitor that rewrites some expressions in preparation for codegen and also renaming locals assignments to use idiomatic java names. This visitor in particular rewrites variable references to the equivalent to getAttr(params, NAME) or getAttr(locals, NAME), depending on whether the reference is an endpoint params variable or a locally assigned one.