| 1 | use v5.10; | ||
| 2 | use MooseX::Declare; | ||
| 3 | use utf8; | ||
| 4 | class VAST::postcircumfix__S_Paren_Thesis { | ||
| 5 | use Mildew::AST::Helpers; | ||
| 6 | method emit_m0ld { | ||
| 7 | my $arg; | ||
| 8 | if ($self->{arg}->isa('VAST::term__S_name')) { | ||
| 9 | my @name = $self->{arg}{longname}->components; | ||
| 10 | my $name = pop(@name); | ||
| 11 | if (scalar @name) { | ||
| 12 | $arg = call('postcircumfix:{ }'=>FETCH(lookup_package(@name)),[string('&'.$name)]); | ||
| 13 | } else { | ||
| 14 | $arg = lookup('&'.$name); | ||
| 15 | } | ||
| 16 | } else { | ||
| 17 | $arg = $self->{arg}->emit_m0ld; | ||
| 18 | } | ||
| 19 | call 'postcircumfix:( )' => FETCH($arg),[capturize(named_and_positional($self->{postop}{postcircumfix}{semiarglist}->emit_m0ld))]; | ||
| 20 | } | ||
| 21 | } |