PPI/Structure/Unknown.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/Subscript.pm ↑ Summary PPI/Structure/When.pm »
1 package PPI::Structure::Unknown;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Structure::Unknown - An unknown or unresolved brace structure
8  
9 =head1 INHERITANCE
10  
11 PPI::Structure::Unknown
12 isa PPI::Structure
13 isa PPI::Node
14 isa PPI::Element
15  
16 =head1 DESCRIPTION
17  
18 C<PPI::Structure::Unknown> is class for braces whose type is unknown, or
19 temporarily unknown.
20  
21 It primarily exists temporarily inside the lexer. Although some types of
22 braces can be determined immediately at opening, there are a number of
23 different brace types that can only be correctly identified after the
24 braces are closed.
25  
26 A structure is typed as unknown during this period it is indeterminate.
27  
28 A C<PPI::Structure::Unknown> object should not B<ever> make it out of the
29 lexer without being converted to it's final type. Any time you encounter
30 this class in a PDOM tree it should be considered a bug and reported
31 accordingly.
32  
33 =head1 METHODS
34  
35 C<PPI::Structure::Unknown> has no methods beyond those provided by the
36 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
37  
38 =cut
39  
40 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 62 ▶use PPI::Structure ();
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
44 BEGIN {
45 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
46 62 @ISA = 'PPI::Structure';
47 }
48  
49 62 1;
50  
51 =pod
52  
53 =head1 SUPPORT
54  
55 See the L<support section|PPI/SUPPORT> in the main module.
56  
57 =head1 AUTHOR
58  
59 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
60  
61 =head1 COPYRIGHT
62  
63 Copyright 2001 - 2011 Adam Kennedy.
64  
65 This program is free software; you can redistribute
66 it and/or modify it under the same terms as Perl itself.
67  
68 The full text of the license can be found in the
69 LICENSE file included with this module.
70  
71 =cut
« PPI/Structure/Subscript.pm ↑ Summary PPI/Structure/When.pm »