| 1 | package JSON::Schema::Generator::Handler::Maybe::Lifted; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | sub process { |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 1 | my($class, $maybe_type, $examples, $dispatch) = @_; | |
| 8 | 1 | my $entity_examples = [ grep { $maybe_type->type->accepts($_) } @$examples ]; | |
| 9 | return +{ | ||
| 10 | 1 | %{ $dispatch->($maybe_type->type, $entity_examples) }, | |
| 11 | }; | ||
| 12 | } | ||
| 13 | |||
| 14 | 2 | 1; | |