PPI/Structure/Condition.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/Structure/Block.pm ↑ Summary PPI/Structure/Constructor.pm »
1 package PPI::Structure::Condition;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Structure::Condition - Round braces for boolean context conditions
8  
9 =head1 SYNOPSIS
10  
11 if ( condition ) {
12 ...
13 }
14
15 while ( condition ) {
16 ...
17 }
18  
19 =head1 INHERITANCE
20  
21 PPI::Structure::Condition
22 isa PPI::Structure
23 isa PPI::Node
24 isa PPI::Element
25  
26 =head1 DESCRIPTION
27  
28 C<PPI::Structure::Condition> is the class used for all round braces
29 that represent boolean contexts used in various conditions.
30  
31 =head1 METHODS
32  
33 C<PPI::Structure::Condition> has no methods beyond those provided by
34 the standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
35  
36 =cut
37  
38 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 62 ▶use PPI::Structure ();
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
42 BEGIN {
43 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
44 62 @ISA = 'PPI::Structure';
45 }
46  
47 62 1;
48  
49 =pod
50  
51 =head1 SUPPORT
52  
53 See the L<support section|PPI/SUPPORT> in the main module.
54  
55 =head1 AUTHOR
56  
57 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
58  
59 =head1 COPYRIGHT
60  
61 Copyright 2001 - 2011 Adam Kennedy.
62  
63 This program is free software; you can redistribute
64 it and/or modify it under the same terms as Perl itself.
65  
66 The full text of the license can be found in the
67 LICENSE file included with this module.
68  
69 =cut
« PPI/Structure/Block.pm ↑ Summary PPI/Structure/Constructor.pm »