line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gherkin::Token; |
2
|
|
|
|
|
|
|
$Gherkin::Token::VERSION = '27.0.0'; |
3
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
163
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Class::XSAccessor |
7
|
|
|
|
|
|
|
constructor => 'new', |
8
|
|
|
|
|
|
|
accessors => [ |
9
|
|
|
|
|
|
|
qw/line location/, |
10
|
2
|
|
|
|
|
15
|
map { "matched_$_" } qw/type keyword keyword_type |
|
14
|
|
|
|
|
40
|
|
11
|
|
|
|
|
|
|
indent items text gherkin_dialect/ |
12
|
|
|
|
|
|
|
], |
13
|
2
|
|
|
2
|
|
20
|
; |
|
2
|
|
|
|
|
4
|
|
14
|
|
|
|
|
|
|
|
15
|
79
|
|
|
79
|
0
|
132
|
sub is_eof { my $self = shift; return !$self->line } |
|
79
|
|
|
|
|
300
|
|
16
|
|
|
|
0
|
0
|
|
sub detach { } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub token_value { |
19
|
2
|
|
|
2
|
0
|
8
|
my $self = shift; |
20
|
2
|
50
|
|
|
|
15
|
return $self->is_eof ? "EOF" : $self->line->get_line_text; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |