line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
12
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
79
|
|
2
|
3
|
|
|
3
|
|
9
|
use warnings; |
|
3
|
|
|
|
|
16
|
|
|
3
|
|
|
|
|
91
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Parse::Method::Signatures::Types; |
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
11
|
use Moose::Util::TypeConstraints; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
19
|
|
7
|
3
|
|
|
3
|
|
3386
|
use MooseX::Types::Moose qw/Str ArrayRef/; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
17
|
|
8
|
3
|
|
|
3
|
|
9658
|
use namespace::clean; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
25
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
|
|
17
|
use MooseX::Types -declare => [qw/ |
11
|
|
|
|
|
|
|
VariableName |
12
|
|
|
|
|
|
|
TypeConstraint |
13
|
|
|
|
|
|
|
Param |
14
|
|
|
|
|
|
|
ParamCollection |
15
|
|
|
|
|
|
|
PositionalParam |
16
|
|
|
|
|
|
|
NamedParam |
17
|
|
|
|
|
|
|
UnpackedParam |
18
|
3
|
|
|
3
|
|
924
|
/]; |
|
3
|
|
|
|
|
3
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
subtype VariableName, |
21
|
|
|
|
|
|
|
as Str, |
22
|
|
|
|
|
|
|
where { /^[\$@%](?:[a-z_][a-z_\d]*)?$/i }, |
23
|
|
|
|
|
|
|
message { 'not a valid variable name' }; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
subtype TypeConstraint, |
26
|
|
|
|
|
|
|
as 'Moose::Meta::TypeConstraint'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
class_type Param, { class => 'Parse::Method::Signatures::Param' }; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
class_type ParamCollection, { class => 'Parse::Method::Signatures::ParamCollection' }; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
coerce ParamCollection, |
33
|
|
|
|
|
|
|
from ArrayRef, |
34
|
|
|
|
|
|
|
via { Parse::Method::Signatures::ParamCollection->new(params => $_) }; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
role_type PositionalParam, { role => 'Parse::Method::Signatures::Param::Positional' }; |
37
|
|
|
|
|
|
|
role_type NamedParam, { role => 'Parse::Method::Signatures::Param::Named' }; |
38
|
|
|
|
|
|
|
role_type UnpackedParam, { role => 'Parse::Method::Signatures::Param::Unpacked' }; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |