| 1 | package ExtUtils::Builder::Planner::Extension; | ||
| 2 | 6 | $ExtUtils::Builder::Planner::Extension::VERSION = '0.020'; | |
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 0 | ▶ | sub add_delegate { |
|
Subroutine
add_delegate: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 7 | 0 | my ($self, $planner, $as, $make_node) = @_; | |
| 8 | 0 | ▶ | my $delegate = sub { |
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||
| 9 | 0 | my ($self, @args) = @_; | |
| 10 | 0 | for my $node ($make_node->(@args)) { | |
| 11 | 0 | $planner->add_node($node); | |
| 12 | } | ||
| 13 | 0 | }; | |
| 14 | 0 | $planner->add_delegate($as, $delegate); | |
| 15 | 0 | return; | |
| 16 | } | ||
| 17 | |||
| 18 | 0 | ▶ | sub add_helper { |
|
Subroutine
add_helper: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | my ($self, $planner, $as, $helper) = @_; | |
| 20 | 0 | ▶ | $planner->add_delegate($as, sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 21 | 0 | my ($self, @args) = @_; | |
| 22 | 0 | return $helper->(@args); | |
| 23 | 0 | }); | |
| 24 | 0 | return; | |
| 25 | } | ||
| 26 | |||
| 27 | 6 | 1; | |
| 28 | |||
| 29 | #ABSTRACT: a base class for Planner extensions | ||
| 30 | |||
| 31 | __END__ | ||