line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::Declare::Lexer::Token::Heredoc; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
70
|
use base qw/ Devel::Declare::Lexer::Token /; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
820
|
|
4
|
|
|
|
|
|
|
|
5
|
10
|
|
|
10
|
|
112
|
use v5; |
|
10
|
|
|
|
|
36
|
|
|
10
|
|
|
|
|
2079
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
1
|
|
|
1
|
0
|
7
|
my ($caller, %arg) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
12
|
my $self = $caller->SUPER::new(%arg); |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
|
|
5
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub get |
17
|
|
|
|
|
|
|
{ |
18
|
1
|
|
|
1
|
0
|
7
|
my ($self) = @_; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# return '<<' . $self->{name} . "\n" . $self->{value}; # value currently contains end name |
21
|
1
|
|
|
|
|
6
|
my $v = $self->{value}; |
22
|
1
|
|
|
|
|
4
|
$v =~ s/\n/\\n/g; |
23
|
1
|
|
|
|
|
6
|
return '"' . $v . '"'; # value currently contains end name |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |