Data/Sah/Compiler/Prog/TH/any.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 94.4% 34 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Sah/Compiler/Prog/TH/all.pm ↑ Summary Data/Sah/Compiler/human/TH/date.pm »
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__
« Data/Sah/Compiler/Prog/TH/all.pm ↑ Summary Data/Sah/Compiler/human/TH/date.pm »