VAST/statement_control__S_use.pm untested

filter: Statementstmt 0.0% 0 / 39 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 67 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 use v5.10;
3 use MooseX::Declare;
4 class VAST::statement_control__S_use {
5 use Mildew::AST::Helpers;
6 method emit_m0ld {
7 use YAML::XS;
8 my $module = $self->{module_name}{longname};
9 if ($module->{name}{identifier}{TEXT} eq 'adhoc-signatures') {
10 $Mildew::adhoc_sig = 1;
11 ();
12 } elsif ($module->{name}{identifier}{TEXT} eq 'v6-mildew') {
13 ();
14 } elsif ($self->{version}) {
15 # use v6
16 } elsif ($module
17 && $module->{colonpair}[0]
18 && $module->{colonpair}[0]{k} eq 'from'
19 && $module->{colonpair}[0]{v}{nibble}->Str eq 'perl5') {
20 my $name = join '::',$module->{name}{identifier}{TEXT},map {
21 $_->{identifier}[0]{TEXT}
22 } @{$module->{name}{morename}};
23  
24 call('BIND', call('postcircumfix:{ }' => reg '$scope', [string $name]),
25 [ call('postcircumfix:( )' =>
26 FETCH(call('postcircumfix:{ }' => FETCH(lookup('EXTERNAL::')), [string '&use_from_perl5'])),
27 [capturize([string $name])]) ]);
28 } elsif ($module) {
29 my $name = $module->{name}{identifier}{TEXT};
30 call(EXPORTALL => FETCH(call('BIND'=> curlies($name.'::'),[call lookup=>FETCH(call(load => FETCH(call(new => lookupf('ModuleLoader'))),[string ($name),lookupf('$LexicalPrelude')])),[string($name.'::')]])),[reg '$scope']);
31 } else {
32 XXX;
33 }
34 }
35 }