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