| 1 | package KiokuDB::TypeMap::Entry::Ref; | ||
| 2 | 14 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 14 | ▶ | no warnings 'recursion'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 14 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 14 | with qw( | |
| 9 | KiokuDB::TypeMap::Entry | ||
| 10 | KiokuDB::TypeMap::Entry::Std::Compile | ||
| 11 | KiokuDB::TypeMap::Entry::Std::ID | ||
| 12 | ); | ||
| 13 | |||
| 14 | sub compile_collapse { | ||
| 15 | 140 | ▶ | my ( $self, $reftype ) = @_; |
|
Subroutine
compile_collapse: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | |||
| 17 | 140 | return "visit_ref_fallback"; | |
| 18 | } | ||
| 19 | |||
| 20 | sub compile_expand { | ||
| 21 | 140 | ▶ | my ( $self, $reftype ) = @_; |
|
Subroutine
compile_expand: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | |||
| 23 | 140 | return "expand_object"; | |
| 24 | } | ||
| 25 | |||
| 26 | sub compile_refresh { | ||
| 27 | 140 | ▶ | my ( $self, $class, @args ) = @_; |
|
Subroutine
compile_refresh: called CC=1 SCAR=3.1
Pod
undocumented
| |||
| 28 | |||
| 29 | return sub { | ||
| 30 | 0 | ▶ | my ( $linker, $object, $entry ) = @_; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 31 | |||
| 32 | 0 | my $new = $linker->expand_object($entry); | |
| 33 | |||
| 34 | 0 | require Data::Swap; | |
| 35 | 0 | Data::Swap::swap($new, $object); # FIXME remove! | |
| 36 | |||
| 37 | 0 | return $object; | |
| 38 | 140 | }; | |
| 39 | } | ||
| 40 | |||
| 41 | 14 | __PACKAGE__->meta->make_immutable; | |
| 42 | |||
| 43 | 14 | __PACKAGE__ | |
| 44 | |||
| 45 | __END__ | ||