line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dallycot::AST::Uses; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JSMITH'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# ABSTRACT: A no-op placeholder |
5
|
|
|
|
|
|
|
|
6
|
23
|
|
|
23
|
|
12325
|
use strict; |
|
23
|
|
|
|
|
36
|
|
|
23
|
|
|
|
|
719
|
|
7
|
23
|
|
|
23
|
|
87
|
use warnings; |
|
23
|
|
|
|
|
26
|
|
|
23
|
|
|
|
|
478
|
|
8
|
|
|
|
|
|
|
|
9
|
23
|
|
|
23
|
|
82
|
use utf8; |
|
23
|
|
|
|
|
33
|
|
|
23
|
|
|
|
|
105
|
|
10
|
23
|
|
|
23
|
|
431
|
use parent 'Dallycot::AST'; |
|
23
|
|
|
|
|
38
|
|
|
23
|
|
|
|
|
118
|
|
11
|
|
|
|
|
|
|
|
12
|
23
|
|
|
23
|
|
1155
|
use Promises qw(deferred); |
|
23
|
|
|
|
|
37
|
|
|
23
|
|
|
|
|
109
|
|
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
0
|
0
|
|
sub to_string { return "" } |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
0
|
|
sub is_declarative { return 1 } |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
|
sub identifier { } |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub as_text { |
21
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
return "uses <" . $self->[0]->value . ">"; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub namespace { |
27
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $self->[0]->value; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub execute { |
33
|
0
|
|
|
0
|
0
|
|
my ( $self, $engine ) = @_; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $d = deferred; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
$engine->append_namespace_search_path( $self->[0]->value ); |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
$d->resolve( $self->[0] ); |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
return $d->promise; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |