line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mason::Types; |
2
|
|
|
|
|
|
|
$Mason::Types::VERSION = '2.23'; |
3
|
20
|
|
|
20
|
|
111
|
use Moose::Util::TypeConstraints; |
|
20
|
|
|
|
|
30
|
|
|
20
|
|
|
|
|
264
|
|
4
|
20
|
|
|
20
|
|
35487
|
use strict; |
|
20
|
|
|
|
|
38
|
|
|
20
|
|
|
|
|
587
|
|
5
|
20
|
|
|
20
|
|
85
|
use warnings; |
|
20
|
|
|
|
|
32
|
|
|
20
|
|
|
|
|
4796
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
subtype 'Mason::Types::CompRoot' => as 'ArrayRef[Str]'; |
8
|
|
|
|
|
|
|
coerce 'Mason::Types::CompRoot' => from 'Str' => via { [$_] }; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
subtype 'Mason::Types::OutMethod' => as 'CodeRef'; |
11
|
|
|
|
|
|
|
coerce 'Mason::Types::OutMethod' => from 'ScalarRef' => via { |
12
|
|
|
|
|
|
|
my $ref = $_; |
13
|
|
|
|
|
|
|
sub { $$ref .= $_[0] } |
14
|
|
|
|
|
|
|
}; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
subtype 'Mason::Types::RegexpRefOrStr' => as 'RegexpRef'; |
17
|
|
|
|
|
|
|
coerce 'Mason::Types::RegexpRefOrStr' => from 'Str' => via { qr/$/ }; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
subtype 'Mason::Types::Autoextend' => as 'ArrayRef[Str]'; |
20
|
|
|
|
|
|
|
coerce 'Mason::Types::Autoextend' => from 'Bool' => via { $_ ? [ '.mp', '.mc' ] : [] }; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |