Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Structure/Unknown.pm |
Statements | Executed 9 statements in 95µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 12µs | 24µs | BEGIN@42 | PPI::Structure::Unknown::
1 | 1 | 1 | 8µs | 8µs | BEGIN@46 | PPI::Structure::Unknown::
1 | 1 | 1 | 7µs | 37µs | BEGIN@45 | PPI::Structure::Unknown::
1 | 1 | 1 | 4µs | 4µs | BEGIN@43 | PPI::Structure::Unknown::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PPI::Structure::Unknown; | ||||
2 | |||||
3 | =pod | ||||
4 | |||||
5 | =head1 NAME | ||||
6 | |||||
7 | PPI::Structure::Unknown - An unknown or unresolved brace structure | ||||
8 | |||||
9 | =head1 INHERITANCE | ||||
10 | |||||
11 | PPI::Structure::Unknown | ||||
12 | isa PPI::Structure | ||||
13 | isa PPI::Node | ||||
14 | isa PPI::Element | ||||
15 | |||||
16 | =head1 DESCRIPTION | ||||
17 | |||||
18 | C<PPI::Structure::Unknown> is class for braces whose type is unknown, or | ||||
19 | temporarily unknown. | ||||
20 | |||||
21 | It primarily exists temporarily inside the lexer. Although some types of | ||||
22 | braces can be determined immediately at opening, there are a number of | ||||
23 | different brace types that can only be correctly identified after the | ||||
24 | braces are closed. | ||||
25 | |||||
26 | A structure is typed as unknown during this period it is indeterminate. | ||||
27 | |||||
28 | A C<PPI::Structure::Unknown> object should not B<ever> make it out of the | ||||
29 | lexer without being converted to it's final type. Any time you encounter | ||||
30 | this class in a PDOM tree it should be considered a bug and reported | ||||
31 | accordingly. | ||||
32 | |||||
33 | =head1 METHODS | ||||
34 | |||||
35 | C<PPI::Structure::Unknown> has no methods beyond those provided by the | ||||
36 | standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods. | ||||
37 | |||||
38 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
39 | |||||
40 | =cut | ||||
41 | |||||
42 | 2 | 19µs | 2 | 35µs | # spent 24µs (12+11) within PPI::Structure::Unknown::BEGIN@42 which was called:
# once (12µs+11µs) by PPI::Structure::BEGIN@111 at line 42 # spent 24µs making 1 call to PPI::Structure::Unknown::BEGIN@42
# spent 11µs making 1 call to strict::import |
43 | 2 | 19µs | 1 | 4µs | # spent 4µs within PPI::Structure::Unknown::BEGIN@43 which was called:
# once (4µs+0s) by PPI::Structure::BEGIN@111 at line 43 # spent 4µs making 1 call to PPI::Structure::Unknown::BEGIN@43 |
44 | |||||
45 | 2 | 28µs | 2 | 68µs | # spent 37µs (7+31) within PPI::Structure::Unknown::BEGIN@45 which was called:
# once (7µs+31µs) by PPI::Structure::BEGIN@111 at line 45 # spent 37µs making 1 call to PPI::Structure::Unknown::BEGIN@45
# spent 31µs making 1 call to vars::import |
46 | # spent 8µs within PPI::Structure::Unknown::BEGIN@46 which was called:
# once (8µs+0s) by PPI::Structure::BEGIN@111 at line 49 | ||||
47 | 1 | 300ns | $VERSION = '1.215'; | ||
48 | 1 | 9µs | @ISA = 'PPI::Structure'; | ||
49 | 1 | 18µs | 1 | 8µs | } # spent 8µs making 1 call to PPI::Structure::Unknown::BEGIN@46 |
50 | |||||
51 | 1 | 2µs | 1; | ||
52 | |||||
53 | =pod | ||||
54 | |||||
55 | =head1 SUPPORT | ||||
56 | |||||
57 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
58 | |||||
59 | =head1 AUTHOR | ||||
60 | |||||
61 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
62 | |||||
63 | =head1 COPYRIGHT | ||||
64 | |||||
65 | Copyright 2001 - 2011 Adam Kennedy. | ||||
66 | |||||
67 | This program is free software; you can redistribute | ||||
68 | it and/or modify it under the same terms as Perl itself. | ||||
69 | |||||
70 | The full text of the license can be found in the | ||||
71 | LICENSE file included with this module. | ||||
72 | |||||
73 | =cut |