Add built local::lib
[catagits/Gitalist.git] / local-lib5 / lib / perl5 / PPI / Statement / Null.pm
CommitLineData
3fea05b9 1package PPI::Statement::Null;
2
3=pod
4
5=head1 NAME
6
7PPI::Statement::Null - A useless null statement
8
9=head1 SYNOPSIS
10
11 my $foo = 1;
12
13 ; # <-- Null statement
14
15 my $bar = 1;
16
17=head1 INHERITANCE
18
19 PPI::Statement::Null
20 isa PPI::Statement
21 isa PPI::Node
22 isa PPI::Element
23
24=head1 DESCRIPTION
25
26C<PPI::Statement::Null> is a utility class designed to handle situations
27where PPI encounters a naked statement separator.
28
29Although strictly speaking, the semicolon is a statement B<separator>
30and not a statement B<terminator>, PPI considers a semicolon to be a
31statement terminator under most circumstances.
32
33In any case, the null statement has no purpose, and can be safely deleted
34with no ill effect.
35
36=head1 METHODS
37
38C<PPI::Statement::Null> has no additional methods beyond the default ones
39provided by L<PPI::Statement>, L<PPI::Node> and L<PPI::Element>.
40
41=cut
42
43use strict;
44use PPI::Statement ();
45
46use vars qw{$VERSION @ISA};
47BEGIN {
48 $VERSION = '1.206';
49 @ISA = 'PPI::Statement';
50}
51
52# A null statement is not significant
53sub significant { '' }
54
551;
56
57=pod
58
59=head1 SUPPORT
60
61See the L<support section|PPI/SUPPORT> in the main module.
62
63=head1 AUTHOR
64
65Adam Kennedy E<lt>adamk@cpan.orgE<gt>
66
67=head1 COPYRIGHT
68
69Copyright 2001 - 2009 Adam Kennedy.
70
71This program is free software; you can redistribute
72it and/or modify it under the same terms as Perl itself.
73
74The full text of the license can be found in the
75LICENSE file included with this module.
76
77=cut