File Coverage

blib/lib/PPI/Token/Label.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
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 or C 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 and L classes.
26              
27             =cut
28              
29 65     65   406 use strict;
  65         107  
  65         1446  
30 65     65   266 use PPI::Token ();
  65         106  
  65         2919  
31              
32             our $VERSION = '1.276';
33              
34             our @ISA = "PPI::Token";
35              
36             1;
37              
38             =pod
39              
40             =head1 SUPPORT
41              
42             See the L in the main module.
43              
44             =head1 AUTHOR
45              
46             Adam Kennedy Eadamk@cpan.orgE
47              
48             =head1 COPYRIGHT
49              
50             Copyright 2001 - 2011 Adam Kennedy.
51              
52             This program is free software; you can redistribute
53             it and/or modify it under the same terms as Perl itself.
54              
55             The full text of the license can be found in the
56             LICENSE file included with this module.
57              
58             =cut