Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPIx/Regexp/Token/GroupType/BranchReset.pm |
Statements | Executed 8 statements in 131µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 18µs | 34µs | BEGIN@32 | PPIx::Regexp::Token::GroupType::BranchReset::
1 | 1 | 1 | 10µs | 16µs | BEGIN@33 | PPIx::Regexp::Token::GroupType::BranchReset::
1 | 1 | 1 | 9µs | 83µs | BEGIN@35 | PPIx::Regexp::Token::GroupType::BranchReset::
0 | 0 | 0 | 0s | 0s | __defining_string | PPIx::Regexp::Token::GroupType::BranchReset::
0 | 0 | 0 | 0s | 0s | perl_version_introduced | PPIx::Regexp::Token::GroupType::BranchReset::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | =head1 NAME | ||||
2 | |||||
3 | PPIx::Regexp::Token::GroupType::BranchReset - Represent a branch reset specifier | ||||
4 | |||||
5 | =head1 SYNOPSIS | ||||
6 | |||||
7 | use PPIx::Regexp::Dumper; | ||||
8 | PPIx::Regexp::Dumper->new( 'qr{(?|(foo)|(bar))}smx' ) | ||||
9 | ->print(); | ||||
10 | |||||
11 | =head1 INHERITANCE | ||||
12 | |||||
13 | C<PPIx::Regexp::Token::GroupType::BranchReset> is a | ||||
14 | L<PPIx::Regexp::Token::GroupType|PPIx::Regexp::Token::GroupType>. | ||||
15 | |||||
16 | C<PPIx::Regexp::Token::GroupType::BranchReset> has no descendants. | ||||
17 | |||||
18 | =head1 DESCRIPTION | ||||
19 | |||||
20 | This token represents the specifier for a branch reset - namely the | ||||
21 | C<?|> that comes after the left parenthesis. | ||||
22 | |||||
23 | =head1 METHODS | ||||
24 | |||||
25 | This class provides no public methods beyond those provided by its | ||||
26 | superclass. | ||||
27 | |||||
28 | =cut | ||||
29 | |||||
30 | package PPIx::Regexp::Token::GroupType::BranchReset; | ||||
31 | |||||
32 | 2 | 28µs | 2 | 50µs | # spent 34µs (18+16) within PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@32 which was called:
# once (18µs+16µs) by PPIx::Regexp::Tokenizer::BEGIN@27 at line 32 # spent 34µs making 1 call to PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@32
# spent 16µs making 1 call to strict::import |
33 | 2 | 28µs | 2 | 22µs | # spent 16µs (10+6) within PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@33 which was called:
# once (10µs+6µs) by PPIx::Regexp::Tokenizer::BEGIN@27 at line 33 # spent 16µs making 1 call to PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@33
# spent 6µs making 1 call to warnings::import |
34 | |||||
35 | 2 | 71µs | 2 | 157µs | # spent 83µs (9+74) within PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@35 which was called:
# once (9µs+74µs) by PPIx::Regexp::Tokenizer::BEGIN@27 at line 35 # spent 83µs making 1 call to PPIx::Regexp::Token::GroupType::BranchReset::BEGIN@35
# spent 74µs making 1 call to base::import |
36 | |||||
37 | 1 | 800ns | our $VERSION = '0.036'; | ||
38 | |||||
39 | # Return true if the token can be quantified, and false otherwise | ||||
40 | # sub can_be_quantified { return }; | ||||
41 | |||||
42 | sub perl_version_introduced { | ||||
43 | return '5.009005'; | ||||
44 | } | ||||
45 | |||||
46 | sub __defining_string { | ||||
47 | return '?|'; | ||||
48 | } | ||||
49 | |||||
50 | 1 | 3µs | 1; | ||
51 | |||||
52 | __END__ |