line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Code::Style::Kit::Parts::Types; |
2
|
1
|
|
|
1
|
|
452
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.0.2'; # VERSION |
5
|
|
|
|
|
|
|
# ABSTRACT: type constraints |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use Import::Into; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
187
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
0
|
5
|
sub feature_types_default { 0 } |
11
|
|
|
|
|
|
|
sub feature_types_export { |
12
|
2
|
|
|
2
|
0
|
4
|
my ($self, $caller) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
13
|
require Type::Params; |
15
|
2
|
|
|
|
|
9
|
Type::Params->import::into($caller); |
16
|
2
|
|
|
|
|
1043
|
require Types::Standard; |
17
|
2
|
|
|
|
|
12
|
Types::Standard->import::into( |
18
|
|
|
|
|
|
|
$caller, |
19
|
|
|
|
|
|
|
"Any", |
20
|
|
|
|
|
|
|
"Item", |
21
|
|
|
|
|
|
|
"Bool", |
22
|
|
|
|
|
|
|
"Undef", |
23
|
|
|
|
|
|
|
"Defined", |
24
|
|
|
|
|
|
|
"Value", |
25
|
|
|
|
|
|
|
"Str", |
26
|
|
|
|
|
|
|
"Num", |
27
|
|
|
|
|
|
|
"Int", |
28
|
|
|
|
|
|
|
"ClassName", |
29
|
|
|
|
|
|
|
"RoleName", |
30
|
|
|
|
|
|
|
"Ref", |
31
|
|
|
|
|
|
|
"CodeRef", |
32
|
|
|
|
|
|
|
"RegexpRef", |
33
|
|
|
|
|
|
|
"FileHandle", |
34
|
|
|
|
|
|
|
"ArrayRef", |
35
|
|
|
|
|
|
|
"HashRef", |
36
|
|
|
|
|
|
|
"ScalarRef", |
37
|
|
|
|
|
|
|
"Object", |
38
|
|
|
|
|
|
|
"Maybe", |
39
|
|
|
|
|
|
|
"Map", |
40
|
|
|
|
|
|
|
"Optional", |
41
|
|
|
|
|
|
|
"Tuple", |
42
|
|
|
|
|
|
|
"Dict", |
43
|
|
|
|
|
|
|
"InstanceOf", |
44
|
|
|
|
|
|
|
"ConsumerOf", |
45
|
|
|
|
|
|
|
"HasMethods", |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |