1 package PPI::Structure::List;
7 PPI::Structure::List - Explicit list or precedence ordering braces
11 # A list used for params
12 function( 'param', 'param' );
15 return ( 'foo', 'bar' );
26 C<PPI::Structure::List> is the class used for circular braces that
27 represent lists, and related.
31 C<PPI::Structure::List> has no methods beyond those provided by the
32 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
34 Got any ideas for methods? Submit a report to rt.cpan.org!
39 use PPI::Structure ();
41 use vars qw{$VERSION @ISA};
44 @ISA = 'PPI::Structure';
47 # Highly special custom isa method that will continue to respond
48 # positively to ->isa('PPI::Structure::ForLoop') but warns.
51 if ( $_[1] and $_[1] eq 'PPI::Structure::ForLoop' ) {
53 $_[0]->parent->isa('PPI::Statement::Compound')
57 unless ( $has_warned ) {
58 warn("PPI::Structure::ForLoop has been deprecated");
64 return shift->SUPER::isa(@_);
73 See the L<support section|PPI/SUPPORT> in the main module.
77 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
81 Copyright 2001 - 2009 Adam Kennedy.
83 This program is free software; you can redistribute
84 it and/or modify it under the same terms as Perl itself.
86 The full text of the license can be found in the
87 LICENSE file included with this module.