blib/lib/PLS/Parser/Element/VariableStatement.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 58.6% 17 / 29 CC 1 SCAR 2.9
CC
1
Cov
62%
new
2.0
symbols
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/PLS/Server/Request/Initialized.pm ↑ Summary blib/lib/PLS/Server/Request.pm »
1 package PLS::Parser::Element::VariableStatement;
2  
3 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 15 ▶use parent 'PLS::Parser::Element';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 15 ▶use PLS::Parser::Element::Variable;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 PLS::Parser::Element::VariableStatement
13  
14 =head1 DESCRIPTION
15  
16 Subclass of L<PLS::Parser::Element> representing a variable statement.
17  
18 =cut
19  
20 sub new
21 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my ($class, @args) = @_;
23  
24 0 my $self = $class->SUPER::new(@args);
25 $self->{symbols} = [
26 0 map { PLS::Parser::Element::Variable->new(document => $self->{document}, element => $_, file => $self->{file}) }
27 0 grep { ref $_ eq 'PPI::Token::Symbol' } $self->element->symbols
28 ];
29  
30 0 return $self;
31 } ## end sub new
32  
33 sub symbols
34 0 ▶{
Subroutine symbols: not called CC=1 SCAR=6.9
Pod undocumented
35 0 my ($self) = @_;
36  
37 0 return $self->{symbols};
38 }
39  
40 15 1;
« blib/lib/PLS/Server/Request/Initialized.pm ↑ Summary blib/lib/PLS/Server/Request.pm »