| 1 | package Mason::Types; | ||||||||||
| 2 | 22 | $Mason::Types::VERSION = '2.24'; | |||||||||
| 3 | 22 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 22 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 22 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 22 | subtype 'Mason::Types::CompRoot' => as 'ArrayRef[Str]'; | |||||||||
| 8 | 109 | ▶ | coerce 'Mason::Types::CompRoot' => from 'Str' => via { [$_] }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 22 | subtype 'Mason::Types::OutMethod' => as 'CodeRef'; | |||||||||
| 11 | 8 | ▶ | coerce 'Mason::Types::OutMethod' => from 'ScalarRef' => via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 8 | my $ref = $_; | |||||||||
| 13 | 7 | ▶ | sub { $$ref .= $_[0] } | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 8 | }; | |||||||||
| 15 | |||||||||||
| 16 | 22 | subtype 'Mason::Types::RegexpRefOrStr' => as 'RegexpRef'; | |||||||||
| 17 | 0 | ▶ | coerce 'Mason::Types::RegexpRefOrStr' => from 'Str' => via { qr/$/ }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 18 | |||||||||||
| 19 | 22 | subtype 'Mason::Types::Autoextend' => as 'ArrayRef[Str]'; | |||||||||
| 20 | 0 | ▶ | coerce 'Mason::Types::Autoextend' => from 'Bool' => via { $_ ? [ '.mp', '.mc' ] : [] }; | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 22 | 1; | |||||||||