line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dallycot::AST::Identity; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JSMITH'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# ABSTRACT: Glue node to return an AST upon execution |
5
|
|
|
|
|
|
|
|
6
|
23
|
|
|
23
|
|
12839
|
use strict; |
|
23
|
|
|
|
|
42
|
|
|
23
|
|
|
|
|
840
|
|
7
|
23
|
|
|
23
|
|
104
|
use warnings; |
|
23
|
|
|
|
|
32
|
|
|
23
|
|
|
|
|
495
|
|
8
|
|
|
|
|
|
|
|
9
|
23
|
|
|
23
|
|
87
|
use utf8; |
|
23
|
|
|
|
|
30
|
|
|
23
|
|
|
|
|
119
|
|
10
|
23
|
|
|
23
|
|
480
|
use parent 'Dallycot::AST'; |
|
23
|
|
|
|
|
34
|
|
|
23
|
|
|
|
|
93
|
|
11
|
|
|
|
|
|
|
|
12
|
23
|
|
|
23
|
|
1218
|
use Promises qw(deferred); |
|
23
|
|
|
|
|
38
|
|
|
23
|
|
|
|
|
122
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub to_string { |
15
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
return $self->[0]->to_string; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub to_rdf { |
21
|
0
|
|
|
0
|
0
|
|
my($self, $model) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
return $self->[0]->to_rdf($model); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub execute { |
27
|
0
|
|
|
0
|
0
|
|
my ( $self, $engine ) = @_; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
my $d = deferred; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
$d->resolve( $self->[0] ); |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $d->promise; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |