line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Language::P::Toy::Value::Any; |
2
|
|
|
|
|
|
|
|
3
|
100
|
|
|
100
|
|
615
|
use strict; |
|
100
|
|
|
|
|
210
|
|
|
100
|
|
|
|
|
3344
|
|
4
|
100
|
|
|
100
|
|
622
|
use warnings; |
|
100
|
|
|
|
|
191
|
|
|
100
|
|
|
|
|
2854
|
|
5
|
100
|
|
|
100
|
|
528
|
use base qw(Class::Accessor::Fast); |
|
100
|
|
|
|
|
220
|
|
|
100
|
|
|
|
|
8492
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
627
|
use Carp; |
|
100
|
|
|
|
|
196
|
|
|
100
|
|
|
|
|
22617
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @METHODS = qw(as_integer as_float as_string as_scalar as_boolean_int |
10
|
|
|
|
|
|
|
localize |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
get_item iterator iterator_from push get_count |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
call |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
dereference_scalar dereference_hash |
17
|
|
|
|
|
|
|
dereference_array dereference_typeglob |
18
|
|
|
|
|
|
|
dereference_subroutine dereference_io |
19
|
|
|
|
|
|
|
dereference |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
0
|
sub type { 1 } |
23
|
0
|
|
|
0
|
0
|
0
|
sub is_defined { 1 } |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub unimplemented { |
26
|
1900
|
|
|
1900
|
0
|
2182
|
my $m = $_[0]; |
27
|
1900
|
|
|
0
|
|
6923
|
return sub { Carp::confess( "Unimplemented: $m!\n" ) }; |
|
0
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
foreach my $name ( @METHODS ) { |
31
|
100
|
|
|
100
|
|
583
|
no strict 'refs'; |
|
100
|
|
|
|
|
228
|
|
|
100
|
|
|
|
|
7624
|
|
32
|
|
|
|
|
|
|
*{$name} = unimplemented( $name ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |