line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PerlX::Generator::Object; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
7
|
use strictures 2; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
50
|
|
4
|
1
|
|
|
1
|
|
583
|
use Lexical::Context; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
362
|
use PerlX::Generator::Invocation; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
6
|
1
|
|
|
1
|
|
6
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
264
|
use overload '&{}' => sub { my $self = shift; sub { $self->start(@_) } }; |
|
1
|
|
|
0
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has code => (is => 'ro', required => 1); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has lexical_context => (is => 'lazy', builder => sub { |
13
|
1
|
|
|
1
|
|
9
|
my ($self) = @_; |
14
|
1
|
|
|
|
|
8
|
return Lexical::Context->new(code => $self->code); |
15
|
|
|
|
|
|
|
}); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
0
|
19
|
sub invocation_class { 'PerlX::Generator::Invocation' } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub start { |
20
|
1
|
|
|
1
|
0
|
1066
|
my ($self, @args) = @_; |
21
|
1
|
|
|
|
|
3
|
return $self->invocation_class->new( |
22
|
|
|
|
|
|
|
code => $self->code, |
23
|
|
|
|
|
|
|
lexical_context => $self->lexical_context, |
24
|
|
|
|
|
|
|
start_args => \@args |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |