| 1 | package AutoCode::CustomMaker; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use AutoCode::ModuleLoader; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=2 SCAR=6.9
| |||||||||||
| 6 | 1 | my ($pkg, $schema, $type, $prefix)=@_; | |||||||||
| 7 | 1 | ▶ | return unless $pkg eq __PACKAGE__; # STOP the child misuse it. | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 1 | my $callpkg=caller; | |||||||||
| 9 | 1 | AutoCode::ModuleLoader->load_schema($schema, $prefix); | |||||||||
| 10 | |||||||||||
| 11 | 1 | my $vp = AutoCode::ModuleLoader->load($type); | |||||||||
| 12 | 1 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 1 | push @{"$callpkg\::ISA"} , $vp; | |||||||||
| 14 | } | ||||||||||
| 15 | 1 | 1; | |||||||||