blib/lib/Zuzu/AST/Stmt/LetUnpack.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
evaluate
1.0
CRAP 1.0
« blib/lib/Zuzu/AST/Stmt/Last.pm ↑ Summary blib/lib/Zuzu/AST/Stmt/Next.pm »
1 package Zuzu::AST::Stmt::LetUnpack;
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  
9 78 has 'bindings' => ( is => 'rw' );
10 78 has 'init' => ( is => 'rw' );
11 78 has 'is_const' => ( is => 'rw' );
12  
13 78 with 'Zuzu::AST::Role::Node';
14  
15 13 ▶sub evaluate {
Subroutine evaluate: called CC=1 SCAR=0.0
Pod documented
16 78 ▶ no warnings 'recursion';
Subroutine BEGIN: called CC=1 SCAR=0.0
17 13 $_[1]->eval_let_unpack($_[0])
18 }
19  
20 =pod
21  
22 =head1 NAME
23  
24 Zuzu::AST::Stmt::LetUnpack - AST node for declaration unpacking
25  
26 =head1 DESCRIPTION
27  
28 Represents C<let { ... } := expr> and C<const { ... } := expr>
29 declarations.
30  
31 =head1 METHODS
32  
33 =head2 evaluate
34  
35 Dispatches this AST node to the matching runtime evaluator.
36  
37 =head1 COPYRIGHT AND LICENCE
38  
39 B<< Zuzu::AST::Stmt::LetUnpack >> is copyright Toby Inkster.
40  
41 It is free software; you may redistribute it and/or modify it under
42 the terms of either the Artistic License 1.0 or the GNU General Public
43 License version 2.
44  
45 =cut
46  
47 78 1;
« blib/lib/Zuzu/AST/Stmt/Last.pm ↑ Summary blib/lib/Zuzu/AST/Stmt/Next.pm »