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

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 14 / 14 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/If.pm ↑ Summary blib/lib/Zuzu/AST/Stmt/LetUnpack.pm »
1 package Zuzu::AST::Stmt::Last;
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 with 'Zuzu::AST::Role::Node';
10  
11 85 ▶sub evaluate { $_[1]->eval_last($_[0]) }
Subroutine evaluate: called CC=1 SCAR=0.0
Pod documented
12  
13 =pod
14  
15 =head1 NAME
16  
17 Zuzu::AST::Stmt::Last - AST node for last statements
18  
19 =head1 DESCRIPTION
20  
21 Represents one statement form in the abstract syntax tree and delegates execution to C<Zuzu::Runtime>.
22  
23 =head1 INHERITANCE
24  
25 Inherits from C<Moo::Object>.
26  
27 =head1 ROLES
28  
29 Consumes C<Zuzu::AST::Role::Node>.
30  
31 =head1 ATTRIBUTES
32  
33 =head1 METHODS
34  
35 =head2 evaluate
36  
37 Dispatches this AST node to the matching runtime evaluator.
38  
39 =head1 SEE ALSO
40  
41 C<Zuzu::AST::Role::Node>.
42  
43 Subclasses: none in this distribution.
44  
45 =head1 COPYRIGHT AND LICENCE
46  
47 B<< Zuzu::AST::Stmt::Last >> is copyright Toby Inkster.
48  
49 It is free software; you may redistribute it and/or modify it under
50 the terms of either the Artistic License 1.0 or the GNU General Public
51 License version 2.
52  
53 =cut
54  
55 78 1;
« blib/lib/Zuzu/AST/Stmt/If.pm ↑ Summary blib/lib/Zuzu/AST/Stmt/LetUnpack.pm »