Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPIx/Regexp/Token/Unmatched.pm |
Statements | Executed 8 statements in 81µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 13µs | 24µs | BEGIN@37 | PPIx::Regexp::Token::Unmatched::
1 | 1 | 1 | 8µs | 12µs | BEGIN@38 | PPIx::Regexp::Token::Unmatched::
1 | 1 | 1 | 7µs | 443µs | BEGIN@40 | PPIx::Regexp::Token::Unmatched::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | =head1 NAME | ||||
2 | |||||
3 | PPIx::Regexp::Token::Unmatched - Represent an unmatched right bracket | ||||
4 | |||||
5 | =head1 SYNOPSIS | ||||
6 | |||||
7 | use PPIx::Regexp::Dumper; | ||||
8 | PPIx::Regexp::Dumper->new( 'qr{)}smx' ) | ||||
9 | ->print(); | ||||
10 | |||||
11 | =head1 INHERITANCE | ||||
12 | |||||
13 | C<PPIx::Regexp::Token::Unmatched> is a | ||||
14 | L<PPIx::Regexp::Token|PPIx::Regexp::Token>. | ||||
15 | |||||
16 | C<PPIx::Regexp::Token::Unmatched> has no descendants. | ||||
17 | |||||
18 | =head1 DESCRIPTION | ||||
19 | |||||
20 | This class is used to represent an unmatched right bracket of any sort - | ||||
21 | parenthesis, square bracket, curly bracket, or whatever. | ||||
22 | |||||
23 | This class is not generated by the tokenizer; instead the lexer | ||||
24 | reblesses a | ||||
25 | L<PPIx::Regexp::Token::Structure|PPIx::Regexp::Token::Structure> into it | ||||
26 | when it is found to be unmatched. | ||||
27 | |||||
28 | =head1 METHODS | ||||
29 | |||||
30 | This class provides no public methods beyond those provided by its | ||||
31 | superclass. | ||||
32 | |||||
33 | =cut | ||||
34 | |||||
35 | package PPIx::Regexp::Token::Unmatched; | ||||
36 | |||||
37 | 2 | 21µs | 2 | 36µs | # spent 24µs (13+12) within PPIx::Regexp::Token::Unmatched::BEGIN@37 which was called:
# once (13µs+12µs) by PPIx::Regexp::Lexer::BEGIN@60 at line 37 # spent 24µs making 1 call to PPIx::Regexp::Token::Unmatched::BEGIN@37
# spent 12µs making 1 call to strict::import |
38 | 2 | 21µs | 2 | 17µs | # spent 12µs (8+5) within PPIx::Regexp::Token::Unmatched::BEGIN@38 which was called:
# once (8µs+5µs) by PPIx::Regexp::Lexer::BEGIN@60 at line 38 # spent 12µs making 1 call to PPIx::Regexp::Token::Unmatched::BEGIN@38
# spent 5µs making 1 call to warnings::import |
39 | |||||
40 | 2 | 36µs | 2 | 879µs | # spent 443µs (7+436) within PPIx::Regexp::Token::Unmatched::BEGIN@40 which was called:
# once (7µs+436µs) by PPIx::Regexp::Lexer::BEGIN@60 at line 40 # spent 443µs making 1 call to PPIx::Regexp::Token::Unmatched::BEGIN@40
# spent 436µs making 1 call to base::import |
41 | |||||
42 | 1 | 500ns | our $VERSION = '0.036'; | ||
43 | |||||
44 | # Return true if the token can be quantified, and false otherwise | ||||
45 | # sub can_be_quantified { return }; | ||||
46 | |||||
47 | 1 | 2µs | 1; | ||
48 | |||||
49 | __END__ |