← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:12 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Statement/UnmatchedBrace.pm
StatementsExecuted 9 statements in 109µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs23µsPPI::Statement::UnmatchedBrace::::BEGIN@47PPI::Statement::UnmatchedBrace::BEGIN@47
1118µs8µsPPI::Statement::UnmatchedBrace::::BEGIN@51PPI::Statement::UnmatchedBrace::BEGIN@51
1116µs33µsPPI::Statement::UnmatchedBrace::::BEGIN@50PPI::Statement::UnmatchedBrace::BEGIN@50
1113µs3µsPPI::Statement::UnmatchedBrace::::BEGIN@48PPI::Statement::UnmatchedBrace::BEGIN@48
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package PPI::Statement::UnmatchedBrace;
2
3=pod
4
5=head1 NAME
6
7PPI::Statement::UnmatchedBrace - Isolated unmatched brace
8
9=head1 SYNOPSIS
10
11 sub foo {
12 1;
13 }
14
15 } # <--- This is an unmatched brace
16
17=head1 INHERITANCE
18
19 PPI::Statement::UnmatchedBrace
20 isa PPI::Statement
21 isa PPI::Node
22 isa PPI::Element
23
24=head1 DESCRIPTION
25
26The C<PPI::Statement::UnmatchedBrace> class is a miscellaneous utility
27class. Objects of this type should be rare, or not exist at all in normal
28valid L<PPI::Document> objects.
29
30It can be either a round ')', square ']' or curly '}' brace, this class
31does not distinguish. Objects of this type are only allocated at a
32structural level, not a lexical level (as they are lexically invalid
33anyway).
34
35The presence of a C<PPI::Statement::UnmatchedBrace> indicated a broken
36or invalid document. Or maybe a bug in PPI, but B<far> more likely a
37broken Document. :)
38
39=head1 METHODS
40
41C<PPI::Statement::UnmatchedBrace> has no additional methods beyond the
42default ones provided by L<PPI::Statement>, L<PPI::Node> and
43L<PPI::Element>.
44
45=cut
46
47222µs234µs
# spent 23µs (12+11) within PPI::Statement::UnmatchedBrace::BEGIN@47 which was called: # once (12µs+11µs) by PPI::Statement::BEGIN@173 at line 47
use strict;
# spent 23µs making 1 call to PPI::Statement::UnmatchedBrace::BEGIN@47 # spent 11µs making 1 call to strict::import
48219µs13µs
# spent 3µs within PPI::Statement::UnmatchedBrace::BEGIN@48 which was called: # once (3µs+0s) by PPI::Statement::BEGIN@173 at line 48
use PPI::Statement ();
# spent 3µs making 1 call to PPI::Statement::UnmatchedBrace::BEGIN@48
49
50227µs260µs
# spent 33µs (6+27) within PPI::Statement::UnmatchedBrace::BEGIN@50 which was called: # once (6µs+27µs) by PPI::Statement::BEGIN@173 at line 50
use vars qw{$VERSION @ISA};
# spent 33µs making 1 call to PPI::Statement::UnmatchedBrace::BEGIN@50 # spent 27µs making 1 call to vars::import
51
# spent 8µs within PPI::Statement::UnmatchedBrace::BEGIN@51 which was called: # once (8µs+0s) by PPI::Statement::BEGIN@173 at line 54
BEGIN {
521400ns $VERSION = '1.215';
5318µs @ISA = 'PPI::Statement';
54131µs18µs}
# spent 8µs making 1 call to PPI::Statement::UnmatchedBrace::BEGIN@51
55
56# Once we've hit a naked unmatched brace we can never truly be complete.
57# So instead we always just call it a day...
58sub _complete () { 1 }
59
6012µs1;
61
62=pod
63
64=head1 SUPPORT
65
66See the L<support section|PPI/SUPPORT> in the main module.
67
68=head1 AUTHOR
69
70Adam Kennedy E<lt>adamk@cpan.orgE<gt>
71
72=head1 COPYRIGHT
73
74Copyright 2001 - 2011 Adam Kennedy.
75
76This program is free software; you can redistribute
77it and/or modify it under the same terms as Perl itself.
78
79The full text of the license can be found in the
80LICENSE file included with this module.
81
82=cut