1 package PPI::Statement::UnmatchedBrace;
7 PPI::Statement::UnmatchedBrace - Isolated unmatched brace
15 } # <--- This is an unmatched brace
19 PPI::Statement::UnmatchedBrace
26 The C<PPI::Statement::UnmatchedBrace> class is a miscellaneous utility
27 class. Objects of this type should be rare, or not exist at all in normal
28 valid L<PPI::Document> objects.
30 It can be either a round ')', square ']' or curly '}' brace, this class
31 does not distinguish. Objects of this type are only allocated at a
32 structural level, not a lexical level (as they are lexically invalid
35 The presence of a C<PPI::Statement::UnmatchedBrace> indicated a broken
36 or invalid document. Or maybe a bug in PPI, but B<far> more likely a
41 C<PPI::Statement::UnmatchedBrace> has no additional methods beyond the
42 default ones provided by L<PPI::Statement>, L<PPI::Node> and
48 use PPI::Statement ();
50 use vars qw{$VERSION @ISA};
53 @ISA = 'PPI::Statement';
56 # Once we've hit a naked unmatched brace we can never truly be complete.
57 # So instead we always just call it a day...
58 sub _complete () { 1 }
66 See the L<support section|PPI/SUPPORT> in the main module.
70 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
74 Copyright 2001 - 2009 Adam Kennedy.
76 This program is free software; you can redistribute
77 it and/or modify it under the same terms as Perl itself.
79 The full text of the license can be found in the
80 LICENSE file included with this module.