| 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; | |