line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dallycot::AST::BuildSet; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JSMITH'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# ABSTRACT: Create set value |
5
|
|
|
|
|
|
|
|
6
|
23
|
|
|
23
|
|
12721
|
use strict; |
|
23
|
|
|
|
|
38
|
|
|
23
|
|
|
|
|
731
|
|
7
|
23
|
|
|
23
|
|
90
|
use warnings; |
|
23
|
|
|
|
|
103
|
|
|
23
|
|
|
|
|
448
|
|
8
|
|
|
|
|
|
|
|
9
|
23
|
|
|
23
|
|
78
|
use utf8; |
|
23
|
|
|
|
|
27
|
|
|
23
|
|
|
|
|
99
|
|
10
|
23
|
|
|
23
|
|
417
|
use parent 'Dallycot::AST'; |
|
23
|
|
|
|
|
46
|
|
|
23
|
|
|
|
|
98
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub to_rdf { |
13
|
0
|
|
|
0
|
0
|
|
my ( $self, $model ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
return $model -> apply( |
16
|
|
|
|
|
|
|
$model -> meta_uri('loc:build-set'), |
17
|
|
|
|
|
|
|
[ @$self ], |
18
|
|
|
|
|
|
|
{} |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
# my $bnode = $model -> bnode; |
21
|
|
|
|
|
|
|
# $model -> add_type($bnode, 'loc:Set'); |
22
|
|
|
|
|
|
|
# $model -> add_list($bnode, 'loc:expressions', |
23
|
|
|
|
|
|
|
# map { $_ -> to_rdf($model) } @{$self} |
24
|
|
|
|
|
|
|
# ); |
25
|
|
|
|
|
|
|
# |
26
|
|
|
|
|
|
|
# return $bnode; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub execute { |
30
|
0
|
|
|
0
|
0
|
|
my ( $self, $engine ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
return $engine->collect(@$self)->then( |
33
|
|
|
|
|
|
|
sub { |
34
|
0
|
|
|
0
|
|
|
return Dallycot::Value::Set->new(@_); |
35
|
|
|
|
|
|
|
} |
36
|
0
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |