| 1 | use v5.10; | ||
| 2 | use MooseX::Declare; | ||
| 3 | use utf8; | ||
| 4 | # CONTROL blocks are moved to the top of the | ||
| 5 | # statementlist, so we know that no code was executed | ||
| 6 | # before this, so we can peacefully delay the setup of the | ||
| 7 | # control block up to this point. | ||
| 8 | class VAST::statement_control__S_CONTROL { | ||
| 9 | use Mildew::AST::Helpers; | ||
| 10 | method emit_m0ld { | ||
| 11 | call 'set_control' => (call 'continuation' => reg '$interpreter'), [ code($self->{block},FETCH(lookup('$DefaultBlockSignature'))) ]; | ||
| 12 | } | ||
| 13 | } |