PPI/Token/Label.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/Token/Cast.pm ↑ Summary PPI/Token/Quote.pm »
1 package PPI::Token::Label;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::Label - Token class for a statement label
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::Label
12 isa PPI::Token
13 isa PPI::Element
14  
15 =head1 DESCRIPTION
16  
17 A label is an identifier attached to a line or statements, to allow for
18 various types of flow control. For example, a loop might have a label
19 attached so that a C<last> or C<next> flow control statement can be used
20 from multiple levels below to reference the loop directly.
21  
22 =head1 METHODS
23  
24 There are no additional methods beyond those provided by the parent
25 L<PPI::Token> and L<PPI::Element> classes.
26  
27 =cut
28  
29 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 62 ▶use PPI::Token ();
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
33 BEGIN {
34 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
35 62 @ISA = 'PPI::Token';
36 }
37  
38 62 1;
39  
40 =pod
41  
42 =head1 SUPPORT
43  
44 See the L<support section|PPI/SUPPORT> in the main module.
45  
46 =head1 AUTHOR
47  
48 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
49  
50 =head1 COPYRIGHT
51  
52 Copyright 2001 - 2011 Adam Kennedy.
53  
54 This program is free software; you can redistribute
55 it and/or modify it under the same terms as Perl itself.
56  
57 The full text of the license can be found in the
58 LICENSE file included with this module.
59  
60 =cut
« PPI/Token/Cast.pm ↑ Summary PPI/Token/Quote.pm »