line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PPI::Structure::Constructor; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
PPI::Structure::Constructor - Anonymous hash or array constructor |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $array = [ 'foo', 'bar' ]; |
12
|
|
|
|
|
|
|
my $hash = { foo => 'bar' }; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 INHERITANCE |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
PPI::Structure::Constructor |
17
|
|
|
|
|
|
|
isa PPI::Structure |
18
|
|
|
|
|
|
|
isa PPI::Node |
19
|
|
|
|
|
|
|
isa PPI::Element |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
C is the class used for anonymous C |
24
|
|
|
|
|
|
|
reference of C reference constructors. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 METHODS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
C has no methods beyond those provided by |
29
|
|
|
|
|
|
|
the standard L, L and L methods. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
64
|
|
|
64
|
|
398
|
use strict; |
|
64
|
|
|
|
|
124
|
|
|
64
|
|
|
|
|
1450
|
|
34
|
64
|
|
|
64
|
|
281
|
use PPI::Structure (); |
|
64
|
|
|
|
|
104
|
|
|
64
|
|
|
|
|
2945
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $VERSION = '1.276'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = "PPI::Structure"; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=pod |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SUPPORT |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
See the L in the main module. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Adam Kennedy Eadamk@cpan.orgE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Copyright 2001 - 2011 Adam Kennedy. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This program is free software; you can redistribute |
57
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
The full text of the license can be found in the |
60
|
|
|
|
|
|
|
LICENSE file included with this module. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |