File Coverage

blib/lib/PPI/Statement/Unknown.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::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 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 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 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.
26              
27             =head1 METHODS
28              
29             C has no additional methods beyond the
30             default ones provided by L, L and
31             L.
32              
33             =cut
34              
35 64     64   377 use strict;
  64         130  
  64         1416  
36 64     64   283 use PPI::Statement ();
  64         112  
  64         7145  
37              
38             our $VERSION = '1.276';
39              
40             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             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