blib/lib/Zuzu/AST/Expr/Spread.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 80.0% 16 / 20 CC 1 SCAR 2.2
CC
1
Cov
87%
evaluate
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Zuzu/AST/Expr/Regexp.pm ↑ Summary blib/lib/Zuzu/Value/Function.pm »
1 package Zuzu::AST::Expr::Spread;
2  
3 78 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 78 our $VERSION = '0.007002';
6  
7 78 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 78 ▶use Zuzu::Error;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 78 has 'expr' => ( is => 'rw' );
11  
12 78 with 'Zuzu::AST::Role::Node';
13  
14 0 ▶sub evaluate {
Subroutine evaluate: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my ( $self ) = @_;
16  
17 0 die Zuzu::Error->new_runtime(
18 message => "Spread argument expansion is not implemented yet",
19 file => $self->file,
20 line => $self->line,
21 );
22 }
23  
24 =pod
25  
26 =head1 NAME
27  
28 Zuzu::AST::Expr::Spread - AST marker for call argument spreading
29  
30 =head1 DESCRIPTION
31  
32 Represents C<...expr> in a call argument list. Runtime expansion is not
33 implemented in this phase.
34  
35 =head1 ATTRIBUTES
36  
37 =head2 expr
38  
39 The expression that will provide values to spread.
40  
41 =head1 COPYRIGHT AND LICENCE
42  
43 B<< Zuzu::AST::Expr::Spread >> is copyright Toby Inkster.
44  
45 It is free software; you may redistribute it and/or modify it under
46 the terms of either the Artistic License 1.0 or the GNU General Public
47 License version 2.
48  
49 =cut
50  
51 78 1;
« blib/lib/Zuzu/AST/Expr/Regexp.pm ↑ Summary blib/lib/Zuzu/Value/Function.pm »