line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Code::Style::Kit::Parts::Types; |
2
|
1
|
|
|
1
|
|
437
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
52
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.0.3'; # VERSION |
5
|
|
|
|
|
|
|
# ABSTRACT: type constraints |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use Import::Into; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
144
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
0
|
4
|
sub feature_types_default { 0 } |
11
|
|
|
|
|
|
|
sub feature_types_export { |
12
|
2
|
|
|
2
|
0
|
4
|
my ($self, $caller) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
11
|
require Type::Params; |
15
|
2
|
|
|
|
|
11
|
Type::Params->import::into($caller); |
16
|
2
|
|
|
|
|
993
|
require Types::Standard; |
17
|
2
|
|
|
|
|
13
|
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__ |