line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Rubyish::Syntax::class; |
2
|
2
|
|
|
2
|
|
25900
|
use Devel::Declare; |
|
2
|
|
|
|
|
17956
|
|
|
2
|
|
|
|
|
12
|
|
3
|
|
|
|
|
|
|
|
4
|
0
|
|
|
0
|
0
|
0
|
sub class { $_[0]->(); }; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub import { |
7
|
2
|
|
|
2
|
|
18
|
my ($class) = @_; |
8
|
2
|
|
|
|
|
5
|
my $caller = caller; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
{ |
11
|
2
|
|
|
2
|
|
439
|
no strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
605
|
|
|
2
|
|
|
|
|
5
|
|
12
|
2
|
|
|
|
|
4
|
*{"${caller}::class"} = \&class; |
|
2
|
|
|
|
|
13
|
|
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Devel::Declare->setup_for( |
16
|
|
|
|
|
|
|
$caller => { |
17
|
|
|
|
|
|
|
'class' => [ |
18
|
|
|
|
|
|
|
DECLARE_PACKAGE, |
19
|
|
|
|
|
|
|
sub { |
20
|
2
|
|
|
2
|
|
251
|
my ($usepack, $use, $inpack, $name, $proto, $is_block) = @_; |
21
|
2
|
|
|
|
|
15
|
return (sub (&) { shift; }, undef, "package ${name}; use Rubyish;"); |
|
0
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} |
23
|
2
|
|
|
|
|
28
|
] |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |