| 1 | package Data::Sah::Util::TypeX; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | #use Log::Any '$log'; | ||
| 7 | |||
| 8 | 1 | require Exporter; | |
| 9 | |||
| 10 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 11 | 1 | our $DATE = '2024-02-16'; # DATE | |
| 12 | 1 | our $DIST = 'Data-Sah'; # DIST | |
| 13 | 1 | our $VERSION = '0.917'; # VERSION | |
| 14 | |||
| 15 | 1 | our @ISA = qw(Exporter); | |
| 16 | 1 | our @EXPORT_OK = qw( | |
| 17 | add_clause | ||
| 18 | ); | ||
| 19 | |||
| 20 | 0 | ▶ | sub add_clause { |
|
Subroutine
add_clause: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | 0 | my ($type, $clause, %opts) = @_; | |
| 22 | # not yet implemented | ||
| 23 | |||
| 24 | # * check duplicate | ||
| 25 | |||
| 26 | # * call Data::Sah::Util::Role::has_clause | ||
| 27 | # * install handlers to Data::Sah::Compiler::$Compiler::TH::$type | ||
| 28 | # * push @{ $Data::Sah::Compiler::human::TypeX{$type} }, $clause; | ||
| 29 | } | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | # ABSTRACT: Sah utility routines for type extensions | ||
| 33 | |||
| 34 | __END__ | ||