PPIx::EditorTools::Outline - Collect use pragmata, modules, subroutiones, methods, attributes |
PPIx::EditorTools::Outline - Collect use pragmata, modules, subroutiones, methods, attributes
my $outline = PPIx::EditorTools::Outline->new->find( code => "package TestPackage;\nsub x { 1;\n" ); print Dumper $outline;
Return a list of pragmatas, modules, methods, attributes of a PPI::Document
.
find( ppi => PPI::Document $ppi ) or find( code => Str $code )
Accepts either a PPI::Document
to process or a string containing
the code (which will be converted into a PPI::Document
) to process.
Return a reference to a hash.
Gabor Szabo <gabor@szabgab.com>
Kevin Dawson <bowtie@cpan.org>
buff3r <buff3r@>
This class inherits from PPIx::EditorTools
.
Also see the App::EditorTools manpage, Padre, and PPI.
PPIx::EditorTools::Outline - Collect use pragmata, modules, subroutiones, methods, attributes |