File Coverage

blib/lib/PLS/Parser/Element/VariableStatement.pm
Criterion Covered Total %
statement 12 20 60.0
branch n/a
condition n/a
subroutine 4 6 66.6
pod 0 2 0.0
total 16 28 57.1


line stmt bran cond sub pod time code
1              
2             use strict;
3 11     11   56 use warnings;
  11         21  
  11         249  
4 11     11   51  
  11         12  
  11         257  
5             use parent 'PLS::Parser::Element';
6 11     11   50  
  11         21  
  11         227  
7             use PLS::Parser::Element::Variable;
8 11     11   4234  
  11         30  
  11         1302  
9             =head1 NAME
10              
11             PLS::Parser::Element::Variable
12              
13             =head1 DESCRIPTION
14              
15             Subclass of L<PLS::Parser::Element> representing a variable statement.
16              
17             =cut
18              
19             {
20             my ($class, @args) = @_;
21              
22 0     0 0   my $self = $class->SUPER::new(@args);
23             $self->{symbols} = [
24 0           map { PLS::Parser::Element::Variable->new(document => $self->{document}, element => $_, file => $self->{file}) }
25             grep { ref $_ eq 'PPI::Token::Symbol' } $self->element->symbols
26 0           ];
27 0            
  0            
28             return $self;
29             } ## end sub new
30 0            
31             {
32             my ($self) = @_;
33              
34             return $self->{symbols};
35 0     0 0   }
36              
37 0           1;