PPI/Statement/Unknown.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Statement/Null.pm ↑ Summary PPI/Statement/UnmatchedBrace.pm »
1 package PPI::Statement::Unknown;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Statement::Unknown - An unknown or transient statement
8  
9 =head1 INHERITANCE
10  
11 PPI::Statement::Unknown
12 isa PPI::Statement
13 isa PPI::Node
14 isa PPI::Element
15  
16 =head1 DESCRIPTION
17  
18 The C<PPI::Statement::Unknown> class is used primarily during the lexing
19 process to hold elements that are known to be statement, but for which
20 the exact C<type> of statement is as yet unknown, and requires further
21 tokens in order to resolve the correct type.
22  
23 They should not exist in a fully parse B<valid> document, and if any
24 exists they indicate either a problem in Document, or possibly (by
25 allowing it to get through unresolved) a bug in L<PPI::Lexer>.
26  
27 =head1 METHODS
28  
29 C<PPI::Statement::Unknown> has no additional methods beyond the
30 default ones provided by L<PPI::Statement>, L<PPI::Node> and
31 L<PPI::Element>.
32  
33 =cut
34  
35 63 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
36 63 ▶use PPI::Statement ();
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 63 our $VERSION = '1.260'; # VERSION
39  
40 63 our @ISA = "PPI::Statement";
41  
42 # If one of these ends up in the final document,
43 # we're pretty much screwed. Just call it a day.
44 sub _complete () { 1 }
45  
46 63 1;
47  
48 =pod
49  
50 =head1 SUPPORT
51  
52 See the L<support section|PPI/SUPPORT> in the main module.
53  
54 =head1 AUTHOR
55  
56 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
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
« PPI/Statement/Null.pm ↑ Summary PPI/Statement/UnmatchedBrace.pm »