| 1 | # [[[ HEADER ]]] | ||
| 2 | package Perl::Type::Void; | ||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 5 | ▶ | use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 5 | our $VERSION = 0.003_000; | |
| 7 | |||
| 8 | # [[[ OO INHERITANCE ]]] | ||
| 9 | 5 | ▶ | use parent qw(Perl::Type); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 5 | ▶ | use Perl::Type; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | # [[[ CRITICS ]]] | ||
| 13 | ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator | ||
| 14 | ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils | ||
| 15 | ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names | ||
| 16 | |||
| 17 | # [[[ SUB-TYPES ]]] | ||
| 18 | # void means no type, void does NOT mean unknown data type, that is Perl::Type::Unknown | ||
| 19 | package void; | ||
| 20 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 5 | ▶ | use parent qw(Perl::Type::Void); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | # DEV NOTE, CORRELATION #rp018: Perl::Type::*.pm files do not 'use RPerl;' and thus do not trigger the pseudo-source-filter contained in | ||
| 25 | # RPerl::CompileUnit::Module::Class::create_symtab_entries_and_accessors_mutators(), | ||
| 26 | # so *__MODE_ID() subroutines are hard-coded here instead of auto-generated there | ||
| 27 | package main; | ||
| 28 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 0 | ▶ | sub Perl__Type__Void__MODE_ID { return 0; } |
|
Subroutine
Perl__Type__Void__MODE_ID: not called CC=1 SCAR=6.9
| |||
| 31 | |||
| 32 | 5 | 1; # end of class | |