blib/lib/Zuzu/AST/Block.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« bin/zuzu.pl ↑ Summary blib/lib/Zuzu/AST/Expr/Array.pm »
1 package Zuzu::AST::Block;
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 'statements' => ( is => 'rw' );
10 9676 ▶has 'reuse_current_env' => ( is => 'rw', default => sub { 0 } );
Subroutine __ANON__: called CC=1 SCAR=0.0
11  
12 78 with 'Zuzu::AST::Role::Node';
13  
14 119955 ▶sub evaluate {
Subroutine evaluate: called CC=1 SCAR=0.0
Pod documented
15 78 ▶ no warnings 'recursion';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 119955 $_[1]->eval_block($_[0])
17 }
18  
19 =pod
20  
21 =head1 NAME
22  
23 Zuzu::AST::Block - AST node representing a statement block
24  
25 =head1 DESCRIPTION
26  
27 AST container for a lexical block body that executes statements sequentially.
28  
29 =head1 INHERITANCE
30  
31 Inherits from C<Moo::Object>.
32  
33 =head1 ROLES
34  
35 Consumes C<Zuzu::AST::Role::Node>.
36  
37 =head1 ATTRIBUTES
38  
39 =head2 statements
40  
41 Type: B<ArrayRef[ConsumerOf["Zuzu::AST::Role::Node"]]>.
42  
43 Ordered child statements contained in the node.
44  
45 =head1 METHODS
46  
47 =head2 evaluate
48  
49 Dispatches this AST node to the matching runtime evaluator.
50  
51 =head1 SEE ALSO
52  
53 C<Zuzu::AST::Role::Node>.
54  
55 Subclasses: none in this distribution.
56  
57 =head1 COPYRIGHT AND LICENCE
58  
59 B<< Zuzu::AST::Block >> is copyright Toby Inkster.
60  
61 It is free software; you may redistribute it and/or modify it under
62 the terms of either the Artistic License 1.0 or the GNU General Public
63 License version 2.
64  
65 =cut
66  
67 78 1;
« bin/zuzu.pl ↑ Summary blib/lib/Zuzu/AST/Expr/Array.pm »