NAME
Perl::Critic::Utils::PPI - Utility functions for dealing with PPI objects.
DESCRIPTION
Provides classification of PPI::Elements.
IMPORTABLE SUBS
is_ppi_expression_or_generic_statement( $element )
-
Answers whether the parameter is an expression or an undifferentiated statement. I.e. the parameter either is a PPI::Statement::Expression or the class of the parameter is PPI::Statement and not one of its subclasses other than
Expression
. is_ppi_generic_statement( $element )
-
Answers whether the parameter is an undifferentiated statement, i.e. the parameter is a PPI::Statement but not one of its subclasses.
is_ppi_statement_subclass( $element )
-
Answers whether the parameter is a specialized statement, i.e. the parameter is a PPI::Statement but the class of the parameter is not PPI::Statement.
AUTHOR
Elliot Shank <perl@galumph.com>
COPYRIGHT
Copyright (c) 2007 Elliot Shank. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.