| 1 | package Pegex::Tree::Wrap; | ||||||||||
| 2 | 12 | ▶ | use Pegex::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 12 | extends 'Pegex::Receiver'; | |||||||||
| 4 | |||||||||||
| 5 | 141 | ▶ | sub gotrule { | ||||||||
|
Subroutine
gotrule: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 6 | 141 | my $self = shift; | |||||||||
| 7 | 141 | ▶ | @_ || return (); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 103 | return {$self->{parser}{rule} => $_[0]} | |||||||||
| 9 | } | ||||||||||
| 10 | |||||||||||
| 11 | 35 | ▶ | sub final { | ||||||||
|
Subroutine
final: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 12 | 35 | my $self = shift; | |||||||||
| 13 | 35 | ▶ | return(shift) if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 3 | return {$self->{parser}{rule} => []} | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 12 | 1; | |||||||||