| 1 | use v5.10; | ||
| 2 | use MooseX::Declare; | ||
| 3 | class VAST::dotty__S_Dot { | ||
| 4 | use Mildew::AST::Helpers; | ||
| 5 | method emit_m0ld { | ||
| 6 | use YAML::XS; | ||
| 7 | # STD workaround | ||
| 8 | |||
| 9 | my $dottyop = $self->{'.'}[1]{dotty}{dottyop}; | ||
| 10 | if (my $methodop = $dottyop->{methodop}) { | ||
| 11 | call $methodop->{longname}->canonical => FETCH($self->{arg}->emit_m0ld),named_and_positional( | ||
| 12 | @{$methodop->{args}} ? $methodop->{args}[0]->emit_m0ld : () | ||
| 13 | ) | ||
| 14 | } elsif (my $postcircumfix = $dottyop->{postop}{postcircumfix}) { | ||
| 15 | call 'postcircumfix:( )' => FETCH($self->{arg}->emit_m0ld),[capturize(named_and_positional($postcircumfix->{semiarglist}->emit_m0ld))]; | ||
| 16 | } else { | ||
| 17 | Mildew::prune($dottyop); | ||
| 18 | die Dump($dottyop); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | } |