VAST/method_def.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 33 CC 2 SCAR 11.0
CC
2
Cov
0%
emit_m0ld
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.0
1 package VAST::method_def;
2 BEGIN {
3 $VAST::method_def::VERSION = '0.05';
4 }
5 use utf8;
6 use strict;
7 use warnings;
8 use Mildew::AST::Helpers;
9  
10 sub emit_m0ld {
11 my $m = shift;
12 let FETCH(lookup('$?CLASS')), sub {
13 my $CLASS = shift;
14 use YAML::XS;
15  
16 my $sig = $m->{multisig}[0]{signature}[0];
17 call add_method => FETCH(call '^!how' => $CLASS),[$CLASS,string $m->{longname}->canonical, routine($m->{blockoid},($sig ? $sig->emit_m0ld_with_invocant : FETCH(lookup('$DefaultMethodSignature'))))];
18 };
19 }
20  
21 1;