| 1 | package Data::Sah::Compiler::js::TH::undef; | ||
| 2 | |||
| 3 | 1 | our $DATE = '2016-09-14'; # DATE | |
| 4 | 1 | our $VERSION = '0.87'; # VERSION | |
| 5 | |||
| 6 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | #use Log::Any '$log'; | ||
| 10 | |||
| 11 | 1 | ▶ | use Mo qw(build default); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | extends 'Data::Sah::Compiler::js::TH'; | |
| 15 | 1 | with 'Data::Sah::Type::undef'; | |
| 16 | |||
| 17 | 0 | ▶ | sub handle_type { |
|
Subroutine
handle_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | my ($self, $cd) = @_; | |
| 19 | 0 | my $c = $self->compiler; | |
| 20 | |||
| 21 | 0 | my $dt = $cd->{data_term}; | |
| 22 | 0 | $cd->{_ccl_check_type} = "$dt === undefined || $dt === null"; | |
| 23 | } | ||
| 24 | |||
| 25 | 1 | 1; | |
| 26 | # ABSTRACT: js's type handler for type "re" | ||
| 27 | |||
| 28 | __END__ | ||