AST/Data/Scan/Impl/Perl5/_Perl5Types.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AST/MooseX/_BaseTypes.pm ↑ Summary AST/Data/Scan/Role/Consumer.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Languages::IDL::AST::Data::Scan::Impl::Perl5::_Perl5Types;
5  
6 # ABSTRACT: Perl5 Base Types library
7  
8 1 our $VERSION = '0.007'; # VERSION
9  
10 # AUTHORITY
11  
12 use Type::Library
13 1 ▶ -base,
Subroutine BEGIN: called CC=1 SCAR=0.0
14 -declare => qw/Perl5_type
15 Perl5_parameterType
16 Perl5_functionType
17 1 Perl5_packageType/;
18 1 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use Types::Standard -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶BEGIN { extends 'MarpaX::Languages::IDL::AST::Data::Scan::Impl::Perl5::_BaseTypes' };
Subroutine BEGIN: called CC=1 SCAR=0.0
22 #
23 # We impose that any type is an instance of Type::Tiny
24 #
25 1 declare Perl5_type, as InstanceOf['Type::Tiny'];
26 #
27 # And now we declare everything that is used for the transpiling
28 #
29 1 declare Perl5_parameterType, as Dict[type => Perl5_type, name => Str];
30 1 declare Perl5_functionType, as Dict[name => Str, signature => Perl5_type, parameters => ArrayRef[Perl5_parameterType]];
31 1 declare Perl5_packageType, as Dict[use => ArrayRef[Str],
32 vars => ArrayRef[Str],
33 with => ArrayRef[Str],
34 extends => ArrayRef[Str],
35 types => ArrayRef[Perl5_type],
36 functions => ArrayRef[Perl5_functionType]
37 ];
38  
39 1 1;
40  
41 __END__
« AST/MooseX/_BaseTypes.pm ↑ Summary AST/Data/Scan/Role/Consumer.pm »