File Coverage

blib/lib/PPI/Structure/Subscript.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::Structure::Subscript;
2              
3             =pod
4              
5             =head1 NAME
6              
7             PPI::Structure::Subscript - Braces that represent an array or hash subscript
8              
9             =head1 SYNOPSIS
10              
11             # The end braces for all of the following are subscripts
12             $foo->[...]
13             $foo[...]
14             $foo{...}[...]
15             $foo->{...}
16             $foo{...}
17             $foo[]{...}
18              
19             =head1 INHERITANCE
20              
21             PPI::Structure::Subscript
22             isa PPI::Structure
23             isa PPI::Node
24             isa PPI::Element
25              
26             =head1 DESCRIPTION
27              
28             C is the class used for square and curly
29             braces that specify one element of an array or hash (or a slice/subset
30             of an array or hash)
31              
32             =head1 METHODS
33              
34             C has no methods beyond those provided by the
35             standard L, L and L methods.
36              
37             =cut
38              
39 64     64   348 use strict;
  64         110  
  64         1423  
40 64     64   277 use PPI::Structure ();
  64         100  
  64         2827  
41              
42             our $VERSION = '1.276';
43              
44             our @ISA = "PPI::Structure";
45              
46             1;
47              
48             =pod
49              
50             =head1 SUPPORT
51              
52             See the L in the main module.
53              
54             =head1 AUTHOR
55              
56             Adam Kennedy Eadamk@cpan.orgE
57              
58             =head1 COPYRIGHT
59              
60             Copyright 2001 - 2011 Adam Kennedy.
61              
62             This program is free software; you can redistribute
63             it and/or modify it under the same terms as Perl itself.
64              
65             The full text of the license can be found in the
66             LICENSE file included with this module.
67              
68             =cut