1PPIx::EditorTools::FindUUsnemratCcohnetdrBirbauctee(d3P)PPeIrxl::DEodciutmoernTtoaotliso:n:FindUnmatchedBrace(3)
2
3
4

NAME

6       PPIx::EditorTools::FindUnmatchedBrace - PPI-based
7       unmatched-brace-finder
8

SYNOPSIS

10         my $brace = PPIx::EditorTools::FindUnmatchedBrace->new->find(
11               code => "package TestPackage;\nsub x { 1;\n"
12             );
13         my $location = $brace->element->location;
14

DESCRIPTION

16       Finds the location of unmatched braces in a "PPI::Document".
17

METHODS

19       new()
20           Constructor. Generally shouldn't be called with any arguments.
21
22       find( ppi => PPI::Document $ppi ) =item find( code => Str $code )
23           Accepts either a "PPI::Document" to process or a string containing
24           the code (which will be converted into a "PPI::Document") to
25           process.  Finds the location of unmatched braces. Returns a
26           "PPIx::EditorTools::ReturnObject" with the unmatched brace (a
27           "PPI::Structure::Block") available via the "element" accessor.  If
28           there is no unmatched brace, returns undef.
29

SEE ALSO

31       This class inherits from "PPIx::EditorTools".  Also see
32       App::EditorTools, Padre, and PPI.
33

AUTHOR

35       Steffen Mueller "smueller@cpan.org" Mark Grimes "mgrimes@cpan.org"
36
38       Copyright 2008-2009 The Padre development team as listed in Padre.pm.
39
40       This program is free software; you can redistribute it and/or modify it
41       under the same terms as Perl 5 itself.
42
43
44
45perl v5.12.0                      2009-P0P9I-x1:9:EditorTools::FindUnmatchedBrace(3)
Impressum