« blib/lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm
↑ Summary
blib/lib/XML/Grammar/Screenplay/Base.pm »
| 1 | package XML::Grammar::Fiction::FromProto::Node::WithContent; | ||||||||||||
| 2 | 28 | $XML::Grammar::Fiction::FromProto::Node::WithContent::VERSION = '0.32.0'; | |||||||||||
| 3 | 28 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 28 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | |||||||||||||
| 7 | 28 | ▶ | use MooX 'late'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 28 | extends("XML::Grammar::Fiction::FromProto::Node"); | |||||||||||
| 10 | |||||||||||||
| 11 | 28 | has 'children' => ( | |||||||||||
| 12 | isa => 'XML::Grammar::Fiction::FromProto::Node::List', | ||||||||||||
| 13 | is => 'rw' | ||||||||||||
| 14 | ); | ||||||||||||
| 15 | |||||||||||||
| 16 | sub _get_childs | ||||||||||||
| 17 | 1514 | ▶ | { | ||||||||||
|
Subroutine
_get_childs: called CC=2 SCAR=7.1
| |||||||||||||
| 18 | 1514 | my $self = shift; | |||||||||||
| 19 | |||||||||||||
| 20 | 1514 | my $childs = $self->children->contents(); | |||||||||||
| 21 | |||||||||||||
| 22 | 1514 | ▶ | return $childs || []; | ||||||||||
|
Condition50%1/2
$childs || []
MC/DC0%0/1
$childs || []
$childs
Truth table50%1/2
A
A= $childs
| |||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | sub _first | ||||||||||||
| 26 | 61 | ▶ | { | ||||||||||
|
Subroutine
_first: called CC=1 SCAR=0.0
| |||||||||||||
| 27 | 61 | my ($self) = @_; | |||||||||||
| 28 | |||||||||||||
| 29 | 61 | return $self->_get_childs()->[0]; | |||||||||||
| 30 | } | ||||||||||||
| 31 | |||||||||||||
| 32 | 28 | 1; | |||||||||||
| 33 | |||||||||||||
| 34 | __END__ | ||||||||||||