| 1 | package HTML::Zoom::FlattenedStream; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 11 | ▶ | use strictures 1; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 11 | ▶ | use base qw(HTML::Zoom::StreamBase); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | 135 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||
| 7 | 135 | my ($class, $args) = @_; | |||||||||||||
| 8 | 135 | bless({ _source => $args->{source}, _zconfig => $args->{zconfig} }, $class); | |||||||||||||
| 9 | } | ||||||||||||||
| 10 | |||||||||||||||
| 11 | 685 | ▶ | sub _next { | ||||||||||||
|
Subroutine
_next: called CC=5 SCAR=16.1
| |||||||||||||||
| 12 | |||||||||||||||
| 13 | 685 | ▶ | return unless (my $self = shift)->{_source}; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 14 | 685 | my ($next, $s); | |||||||||||||
| 15 | 685 | ▶ | until (($next) = ($s = $self->{_cur}) ? $s->next : ()) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 16 | 406 | ▶ | unless (($self->{_cur}) = $self->{_source}->next) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 17 | 133 | delete $self->{_source}; return; | |||||||||||||
| 18 | } | ||||||||||||||
| 19 | } | ||||||||||||||
| 20 | 552 | return $next; | |||||||||||||
| 21 | } | ||||||||||||||
| 22 | |||||||||||||||
| 23 | 11 | 1; | |||||||||||||