| 1 | package Pegex::CPAN::Packages::Data; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Pegex::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | extends 'Pegex::Tree'; | |||||||||
| 5 | |||||||||||
| 6 | 1 | has data => {}; | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | sub final { | ||||||||
|
Subroutine
final: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 9 | 1 | my ($self, $got) = @_; | |||||||||
| 10 | 1 | return $self->data; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | sub got_meta_section { | ||||||||
|
Subroutine
got_meta_section: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 14 | 1 | my ($self, $got) = @_; | |||||||||
| 15 | 1 | $self->{data}{meta} = { map { @$_ } @$got }; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 144806 | ▶ | sub got_index_line { | ||||||||
|
Subroutine
got_index_line: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | 144806 | my ($self, $got) = @_; | |||||||||
| 20 | |||||||||||
| 21 | 144806 | my ( $package, $version, $distribution ) = @$got; | |||||||||
| 22 | |||||||||||
| 23 | 144806 | ▶ | $self->{data}{index}{$distribution}{$package} = | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 'undef' eq $version | ||||||||||
| 25 | ? undef | ||||||||||
| 26 | : $version; | ||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 1 | 1; | |||||||||