@@ -28,30 +28,119 @@ use namespace::clean;
28
28
# TODO: ParameterizedType{Constraint,Coercion} ?
29
29
# {Duck,Class,Enum,Parameterizable,Parameterized,Role,Union}TypeConstraint?
30
30
31
- class_type TypeConstraint, { class => ' Moose::Meta::TypeConstraint' };
32
- class_type TypeCoercion, { class => ' Moose::Meta::TypeCoercion' };
33
- class_type Attribute, { class => ' Class::MOP::Attribute' };
31
+ =type TypeConstraint
32
+
33
+ A L<Moose::Meta::TypeConstraint> .
34
+
35
+ =cut
36
+
37
+ class_type TypeConstraint, { class => ' Moose::Meta::TypeConstraint' };
38
+
39
+ =type TypeCoercion
40
+
41
+ A L<Moose::Meta::TypeCoercion> .
42
+
43
+ =cut
44
+
45
+ class_type TypeCoercion, { class => ' Moose::Meta::TypeCoercion' };
46
+
47
+ =type Attribute
48
+
49
+ A L<Class::MOP::Attribute> .
50
+
51
+ =cut
52
+
53
+ class_type Attribute, { class => ' Class::MOP::Attribute' };
54
+
55
+ =type RoleAttribute
56
+
57
+ A L<Moose::Meta::Role::Attribute> .
58
+
59
+ =cut
60
+
34
61
class_type RoleAttribute, { class => ' Moose::Meta::Role::Attribute' };
35
- class_type Method, { class => ' Class::MOP::Method' };
36
- class_type Class, { class => ' Class::MOP::Class' };
37
- class_type Role, { class => ' Moose::Meta::Role' };
62
+
63
+ =type Method
64
+
65
+ A L<Class::MOP::Method> .
66
+
67
+ =cut
68
+
69
+ class_type Method, { class => ' Class::MOP::Method' };
70
+
71
+ =type Class
72
+
73
+ A L<Class::MOP::Class> .
74
+
75
+ =cut
76
+
77
+ class_type Class, { class => ' Class::MOP::Class' };
78
+
79
+ =type Role
80
+
81
+ A L<Moose::Meta::Role> .
82
+
83
+ =cut
84
+
85
+ class_type Role, { class => ' Moose::Meta::Role' };
86
+
87
+ =type StructuredTypeConstraint
88
+
89
+ A L<MooseX::Meta::TypeConstraint::Structured> .
90
+
91
+ =cut
38
92
39
93
class_type StructuredTypeConstraint, {
40
94
class => ' MooseX::Meta::TypeConstraint::Structured' ,
41
95
};
42
96
97
+ =type StructuredTypeCoercion
98
+
99
+ A L<MooseX::Meta::TypeCoercion::Structured> .
100
+
101
+ =cut
102
+
43
103
class_type StructuredTypeCoercion, {
44
104
class => ' MooseX::Meta::TypeCoercion::Structured' ,
45
105
};
46
106
107
+ =type ParameterizableRole
108
+
109
+ A L<MooseX::Role::Parameterized::Meta::Role::Parameterizable> .
110
+
111
+ =cut
112
+
47
113
class_type ParameterizableRole, {
48
114
class => ' MooseX::Role::Parameterized::Meta::Role::Parameterizable' ,
49
115
};
50
116
117
+ =type ParameterizedRole
118
+
119
+ A L<MooseX::Role::Parameterized::Meta::Role::Parameterized> .
120
+
121
+ =cut
122
+
51
123
class_type ParameterizedRole, {
52
124
class => ' MooseX::Role::Parameterized::Meta::Role::Parameterized' ,
53
125
};
54
126
127
+ =type TypeEquals[`x]
128
+
129
+ A L<Moose::Meta::TypeConstraint> , that's equal to the type constraint
130
+ C<x > .
131
+
132
+ =type TypeOf[`x]
133
+
134
+ A L<Moose::Meta::TypeConstraint> , that's either equal to or a subtype
135
+ of the type constraint C<x > .
136
+
137
+ =type SubtypeOf[`x]
138
+
139
+ A L<Moose::Meta::TypeConstraint> , that's a subtype of the type
140
+ constraint C<x > .
141
+
142
+ =cut
143
+
55
144
for my $t (
56
145
[ ' TypeEquals' , ' equals' ],
57
146
[ ' TypeOf' , ' is_a_type_of' ],
0 commit comments