Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Structure/Given.pm |
Statements | Executed 9 statements in 111µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 15µs | 26µs | BEGIN@36 | PPI::Structure::Given::
1 | 1 | 1 | 12µs | 12µs | BEGIN@40 | PPI::Structure::Given::
1 | 1 | 1 | 6µs | 44µs | BEGIN@39 | PPI::Structure::Given::
1 | 1 | 1 | 4µs | 4µs | BEGIN@37 | PPI::Structure::Given::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PPI::Structure::Given; | ||||
2 | |||||
3 | =pod | ||||
4 | |||||
5 | =head1 NAME | ||||
6 | |||||
7 | PPI::Structure::Given - Circular braces for a switch statement | ||||
8 | |||||
9 | =head1 SYNOPSIS | ||||
10 | |||||
11 | given ( something ) { | ||||
12 | ... | ||||
13 | } | ||||
14 | |||||
15 | =head1 INHERITANCE | ||||
16 | |||||
17 | PPI::Structure::Given | ||||
18 | isa PPI::Structure | ||||
19 | isa PPI::Node | ||||
20 | isa PPI::Element | ||||
21 | |||||
22 | =head1 DESCRIPTION | ||||
23 | |||||
24 | C<PPI::Structure::Given> is the class used for circular braces that | ||||
25 | contain the thing to be matched in a switch statement. | ||||
26 | |||||
27 | =head1 METHODS | ||||
28 | |||||
29 | C<PPI::Structure::Given> has no methods beyond those provided by the | ||||
30 | standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods. | ||||
31 | |||||
32 | Got any ideas for methods? Submit a report to rt.cpan.org! | ||||
33 | |||||
34 | =cut | ||||
35 | |||||
36 | 2 | 21µs | 2 | 38µs | # spent 26µs (15+12) within PPI::Structure::Given::BEGIN@36 which was called:
# once (15µs+12µs) by PPI::Structure::BEGIN@108 at line 36 # spent 26µs making 1 call to PPI::Structure::Given::BEGIN@36
# spent 12µs making 1 call to strict::import |
37 | 2 | 19µs | 1 | 4µs | # spent 4µs within PPI::Structure::Given::BEGIN@37 which was called:
# once (4µs+0s) by PPI::Structure::BEGIN@108 at line 37 # spent 4µs making 1 call to PPI::Structure::Given::BEGIN@37 |
38 | |||||
39 | 2 | 28µs | 2 | 81µs | # spent 44µs (6+38) within PPI::Structure::Given::BEGIN@39 which was called:
# once (6µs+38µs) by PPI::Structure::BEGIN@108 at line 39 # spent 44µs making 1 call to PPI::Structure::Given::BEGIN@39
# spent 38µs making 1 call to vars::import |
40 | # spent 12µs within PPI::Structure::Given::BEGIN@40 which was called:
# once (12µs+0s) by PPI::Structure::BEGIN@108 at line 43 | ||||
41 | 1 | 400ns | $VERSION = '1.215'; | ||
42 | 1 | 12µs | @ISA = 'PPI::Structure'; | ||
43 | 1 | 29µs | 1 | 12µs | } # spent 12µs making 1 call to PPI::Structure::Given::BEGIN@40 |
44 | |||||
45 | 1 | 2µs | 1; | ||
46 | |||||
47 | =pod | ||||
48 | |||||
49 | =head1 SUPPORT | ||||
50 | |||||
51 | See the L<support section|PPI/SUPPORT> in the main module. | ||||
52 | |||||
53 | =head1 AUTHOR | ||||
54 | |||||
55 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||||
56 | |||||
57 | =head1 COPYRIGHT | ||||
58 | |||||
59 | Copyright 2001 - 2011 Adam Kennedy. | ||||
60 | |||||
61 | This program is free software; you can redistribute | ||||
62 | it and/or modify it under the same terms as Perl itself. | ||||
63 | |||||
64 | The full text of the license can be found in the | ||||
65 | LICENSE file included with this module. | ||||
66 | |||||
67 | =cut |