1 package PPI::Statement::When;
7 PPI::Statement::When - Describes all compound statements
11 foreach ( qw/ foo bar baz / ) {
32 C<PPI::Statement::When> objects are used to describe when and default
33 statements, as described in L<perlsyn>.
37 C<PPI::Structure::When> has no methods beyond those provided by the
38 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
40 Got any ideas for methods? Submit a report to rt.cpan.org!
45 use PPI::Statement ();
47 use vars qw{$VERSION @ISA};
50 @ISA = 'PPI::Statement';
54 sub __LEXER__normal { '' }
57 my $child = $_[0]->schild(-1);
61 $child->isa('PPI::Structure::Block')
71 #####################################################################
84 - Write unit tests for this package
88 See the L<support section|PPI/SUPPORT> in the main module.
92 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
96 Copyright 2001 - 2009 Adam Kennedy.
98 This program is free software; you can redistribute
99 it and/or modify it under the same terms as Perl itself.
101 The full text of the license can be found in the
102 LICENSE file included with this module.