line |
true |
false |
branch |
51
|
0 |
52 |
if defined $args{'ppi'} |
52
|
10 |
41 |
if $self->ppi and $self->ppi->isa('PPI::Document') |
55
|
40 |
1 |
if $args{'code'} |
58
|
40 |
1 |
if $self->ppi and $self->ppi->isa('PPI::Document') |
72
|
0 |
58 |
if $_[1]->isa('PPI::Statement::UnmatchedBrace') |
73
|
55 |
3 |
unless $_[1]->isa('PPI::Structure') |
74
|
1 |
2 |
if $_[1]->start and $_[1]->finish |
102
|
52 |
3 |
unless $_[1]->isa('PPI::Statement::Variable') or $_[1]->isa('PPI::Statement::Include') or $_[1]->isa('PPI::Statement::Compound') |
115
|
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') { } |
122
|
0 |
0 |
if ($type eq 'my') { } |
|
0 |
0 |
elsif ($type eq 'our') { } |
|
0 |
0 |
elsif ($type eq 'local') { } |
160
|
0 |
2 |
if scalar @elems < 5 |
163
|
2 |
0 |
if ($elems[4]->isa('PPI::Token::Symbol') and $type eq 'my' || $type eq 'our') |
169
|
2 |
0 |
if ($type eq 'my') { } |
|
0 |
0 |
elsif ($type eq 'our') { } |
213
|
0 |
16 |
unless (defined $document and $document->isa('PPI::Document') and defined $location and ref $location eq 'ARRAY') |
226
|
16 |
640 |
if ($$loc[0] > $$location[0] or $$loc[0] == $$location[0] and $$loc[1] > $$location[1]) |
245
|
0 |
10 |
unless $cursor and $cursor->isa('PPI::Token') |
248
|
10 |
0 |
if ($cursor->isa('PPI::Token::Symbol')) { } |
253
|
0 |
0 |
if ($content =~ /((?:\$#?|[\@%*])[\w:\']+)/) |
259
|
0 |
10 |
unless defined $varname |
268
|
6 |
4 |
if ($cursor->parent->isa('PPI::Statement::Variable')) |
273
|
0 |
4 |
if ($cursor->parent->isa('PPI::Statement::Expression') and $cursor->parent->parent->parent->isa('PPI::Statement::Variable')) |
282
|
6 |
6 |
if ($cursor->isa('PPI::Structure::Block') or $cursor == $document) { } |
|
2 |
8 |
elsif ($cursor->isa('PPI::Statement::Compound') and $cursor->type =~ /^for/) { } |
288
|
2 |
43 |
if $elem == $prev_cursor |
290
|
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') { } |
306
|
0 |
0 |
if (grep {$varname eq $_;} @vars) |
313
|
4 |
2 |
if $declaration or $cursor == $document |
325
|
2 |
16 |
if $elem == $prev_cursor |
327
|
2 |
14 |
if ($elem->isa('PPI::Token::Word') and $elem->content =~ /^(?:my|our)$/) |
331
|
0 |
2 |
if (defined $nelem and $nelem->isa('PPI::Token::Symbol') and $nelem->symbol eq $varname || $nelem->content eq $token_str) |
340
|
0 |
2 |
if $declaration or $cursor == $document |