| 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; | |