Class StatementLowerer


  • public class StatementLowerer
    extends Object
    Lowers AST Statement nodes to IR instructions and blocks.
    • Constructor Detail

      • StatementLowerer

        public StatementLowerer​(LoweringContext ctx,
                                ExpressionLowerer exprLowerer)
        Creates a new statement lowerer.
        Parameters:
        ctx - the lowering context
        exprLowerer - the expression lowerer
    • Method Detail

      • lower

        public void lower​(Statement stmt)
        Lowers one statement into the context's current block.
        Parameters:
        stmt - the statement to lower, dispatched on its concrete type