PPI/Structure/Block.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Statement/UnmatchedBrace.pm ↑ Summary PPI/Structure/Condition.pm »
1 package PPI::Structure::Block;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Structure::Block - Curly braces representing a code block
8  
9 =head1 SYNOPSIS
10  
11 sub foo { ... }
12
13 grep { ... } @list;
14
15 if ( condition ) {
16 ...
17 }
18
19 LABEL: {
20 ...
21 }
22  
23 =head1 INHERITANCE
24  
25 PPI::Structure::Block
26 isa PPI::Structure
27 isa PPI::Node
28 isa PPI::Element
29  
30 =head1 DESCRIPTION
31  
32 C<PPI::Structure::Block> is the class used for all curly braces that
33 represent code blocks. This includes subroutines, compound statements
34 and any other block braces.
35  
36 =head1 METHODS
37  
38 C<PPI::Structure::Block> has no methods beyond those provided by the
39 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
40  
41 =cut
42  
43 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 62 ▶use PPI::Structure ();
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
47 BEGIN {
48 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
49 62 @ISA = 'PPI::Structure';
50 }
51  
52  
53  
54  
55  
56 #####################################################################
57 # PPI::Element Methods
58  
59 # This is a scope boundary
60 sub scope() { 1 }
61  
62 62 1;
63  
64 =pod
65  
66 =head1 SUPPORT
67  
68 See the L<support section|PPI/SUPPORT> in the main module.
69  
70 =head1 AUTHOR
71  
72 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
73  
74 =head1 COPYRIGHT
75  
76 Copyright 2001 - 2011 Adam Kennedy.
77  
78 This program is free software; you can redistribute
79 it and/or modify it under the same terms as Perl itself.
80  
81 The full text of the license can be found in the
82 LICENSE file included with this module.
83  
84 =cut
« PPI/Statement/UnmatchedBrace.pm ↑ Summary PPI/Structure/Condition.pm »