line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
13
|
use strict; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
81
|
|
2
|
3
|
|
|
3
|
|
10
|
use warnings; |
|
3
|
|
|
|
|
18
|
|
|
3
|
|
|
|
|
97
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Parse::Method::Signatures::Types; |
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
9
|
use Moose::Util::TypeConstraints; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
23
|
|
7
|
3
|
|
|
3
|
|
3323
|
use MooseX::Types::Moose qw/Str ArrayRef/; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
17
|
|
8
|
3
|
|
|
3
|
|
9602
|
use namespace::clean; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
27
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
|
|
20
|
use MooseX::Types -declare => [qw/ |
11
|
|
|
|
|
|
|
VariableName |
12
|
|
|
|
|
|
|
TypeConstraint |
13
|
|
|
|
|
|
|
Param |
14
|
|
|
|
|
|
|
ParamCollection |
15
|
|
|
|
|
|
|
PositionalParam |
16
|
|
|
|
|
|
|
NamedParam |
17
|
|
|
|
|
|
|
UnpackedParam |
18
|
3
|
|
|
3
|
|
933
|
/]; |
|
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; |