| 1 | package Data::Sah::Type::any; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 6 | ▶ | use Data::Sah::Util::Role 'has_clause'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use Role::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 6 | with 'Data::Sah::Type::BaseType'; | |
| 10 | |||
| 11 | has_clause 'of', | ||
| 12 | v => 2, | ||
| 13 | tags => ['constraint'], | ||
| 14 | schema => ['array' => {req=>1, min_len=>1, each_elem => ['sah::schema', {req=>1}, {}]}], | ||
| 15 | 0 | ▶ | subschema => sub { @{ $_[0] } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 16 | 6 | allow_expr => 0, | |
| 17 | ; | ||
| 18 | |||
| 19 | 6 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 20 | 6 | our $DATE = '2024-02-16'; # DATE | |
| 21 | 6 | our $DIST = 'Data-Sah'; # DIST | |
| 22 | 6 | our $VERSION = '0.917'; # VERSION | |
| 23 | |||
| 24 | 6 | 1; | |
| 25 | # ABSTRACT: any type | ||
| 26 | |||
| 27 | __END__ | ||