| 1 | package Data::Sah::Compiler::Prog::TH::any; | ||
| 2 | |||
| 3 | 4 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | #use Log::Any '$log'; | ||
| 7 | |||
| 8 | 4 | ▶ | use Mo qw(build default); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 4 | extends 'Data::Sah::Compiler::Prog::TH'; | |
| 12 | 4 | with 'Data::Sah::Type::any'; | |
| 13 | |||
| 14 | 4 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 15 | 4 | our $DATE = '2024-02-16'; # DATE | |
| 16 | 4 | our $DIST = 'Data-Sah'; # DIST | |
| 17 | 4 | our $VERSION = '0.917'; # VERSION | |
| 18 | |||
| 19 | 16 | ▶ | sub handle_type { |
|
Subroutine
handle_type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 16 | my ($self, $cd) = @_; | |
| 21 | 16 | my $c = $self->compiler; | |
| 22 | |||
| 23 | 16 | my $dt = $cd->{data_term}; | |
| 24 | 16 | $cd->{_ccl_check_type} = $c->true; | |
| 25 | } | ||
| 26 | |||
| 27 | 15 | ▶ | sub clause_of { |
|
Subroutine
clause_of: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 28 | 15 | my ($self, $cd) = @_; | |
| 29 | 15 | $self->gen_any_or_all_of("any", $cd); | |
| 30 | } | ||
| 31 | |||
| 32 | 4 | 1; | |
| 33 | # ABSTRACT: Base class for programming language compiler handler for type "any" | ||
| 34 | |||
| 35 | __END__ | ||