line |
true |
false |
branch |
25
|
0 |
52 |
if defined $args{'ppi'} |
26
|
10 |
41 |
if $self->ppi and $self->ppi->isa('PPI::Document') |
29
|
40 |
1 |
if $args{'code'} |
32
|
40 |
1 |
if $self->ppi and $self->ppi->isa('PPI::Document') |
46
|
0 |
58 |
if $_[1]->isa('PPI::Statement::UnmatchedBrace') |
47
|
55 |
3 |
unless $_[1]->isa('PPI::Structure') |
48
|
1 |
2 |
if $_[1]->start and $_[1]->finish |
75
|
52 |
3 |
unless $_[1]->isa('PPI::Statement::Variable') or $_[1]->isa('PPI::Statement::Include') or $_[1]->isa('PPI::Statement::Compound') |
88
|
0 |
3 |
if ($decl->isa('PPI::Statement::Variable')) { } |
|
0 |
3 |
elsif ($decl->isa('PPI::Statement::Include') and $decl->module eq 'vars' and $decl->type eq 'use') { } |
|
2 |
1 |
elsif ($decl->isa('PPI::Statement::Compound') and $decl->type eq 'for' || $decl->type eq 'foreach') { } |
95
|
0 |
0 |
if ($type eq 'my') { } |
|
0 |
0 |
elsif ($type eq 'our') { } |
|
0 |
0 |
elsif ($type eq 'local') { } |
133
|
0 |
2 |
if scalar @elems < 5 |
136
|
2 |
0 |
if ($elems[4]->isa('PPI::Token::Symbol') and $type eq 'my' || $type eq 'our') |
142
|
2 |
0 |
if ($type eq 'my') { } |
|
0 |
0 |
elsif ($type eq 'our') { } |
186
|
0 |
16 |
unless (defined $document and $document->isa('PPI::Document') and defined $location and ref $location eq 'ARRAY') |
199
|
16 |
640 |
if ($loc->[0] > $location->[0] or $loc->[0] == $location->[0] and $loc->[1] > $location->[1]) |
218
|
0 |
10 |
unless $cursor and $cursor->isa('PPI::Token') |
221
|
10 |
0 |
if ($cursor->isa('PPI::Token::Symbol')) { } |
226
|
0 |
0 |
if ($content =~ /((?:\$#?|[@%*])[\w:\']+)/) |
232
|
0 |
10 |
unless defined $varname |
241
|
6 |
4 |
if ($cursor->parent->isa('PPI::Statement::Variable')) |
246
|
0 |
4 |
if ($cursor->parent->isa('PPI::Statement::Expression') and $cursor->parent->parent->parent->isa('PPI::Statement::Variable')) |
255
|
6 |
6 |
if ($cursor->isa('PPI::Structure::Block') or $cursor == $document) { } |
|
2 |
8 |
elsif ($cursor->isa('PPI::Statement::Compound') and $cursor->type =~ /^for/) { } |
261
|
2 |
43 |
if $elem == $prev_cursor |
263
|
4 |
39 |
if ($elem->isa('PPI::Statement::Variable') and grep {$_ eq $varname;} $elem->variables) { } |
|
0 |
41 |
elsif ($elem->isa('PPI::Statement::Include') and $elem->module eq 'vars' and $elem->type eq 'use') { } |
279
|
0 |
0 |
if (grep {$varname eq $_;} @vars) |
286
|
4 |
2 |
if $declaration or $cursor == $document |
298
|
2 |
16 |
if $elem == $prev_cursor |
300
|
2 |
14 |
if ($elem->isa('PPI::Token::Word') and $elem->content =~ /^(?:my|our)$/) |
304
|
0 |
2 |
if (defined $nelem and $nelem->isa('PPI::Token::Symbol') and $nelem->symbol eq $varname || $nelem->content eq $token_str) |
313
|
0 |
2 |
if $declaration or $cursor == $document |