line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Elemental::Transformer 0.103006; |
2
|
|
|
|
|
|
|
# ABSTRACT: something that transforms a node tree into a new tree |
3
|
|
|
|
|
|
|
|
4
|
11
|
|
|
11
|
|
5409
|
use Moose::Role; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
92
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
51821
|
use namespace::autoclean; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
78
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
requires 'transform_node'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#pod =head1 OVERVIEW |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod Pod::Elemental::Transformer is a role to be composed by anything that takes a |
13
|
|
|
|
|
|
|
#pod node and messes around with its contents. This includes transformers to |
14
|
|
|
|
|
|
|
#pod implement Pod dialects, Pod tree nesting strategies, and Pod document |
15
|
|
|
|
|
|
|
#pod rewriters. |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod A class including this role must implement the following methods: |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod =method transform_node |
20
|
|
|
|
|
|
|
#pod |
21
|
|
|
|
|
|
|
#pod my $node = $nester->transform_node($node); |
22
|
|
|
|
|
|
|
#pod |
23
|
|
|
|
|
|
|
#pod This method alters the given node and returns it. Apart from that, the sky is |
24
|
|
|
|
|
|
|
#pod the limit. |
25
|
|
|
|
|
|
|
#pod |
26
|
|
|
|
|
|
|
#pod =cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Pod::Elemental::Transformer - something that transforms a node tree into a new tree |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
version 0.103006 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 OVERVIEW |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Pod::Elemental::Transformer is a role to be composed by anything that takes a |
47
|
|
|
|
|
|
|
node and messes around with its contents. This includes transformers to |
48
|
|
|
|
|
|
|
implement Pod dialects, Pod tree nesting strategies, and Pod document |
49
|
|
|
|
|
|
|
rewriters. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
A class including this role must implement the following methods: |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 PERL VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This library should run on perls released even a long time ago. It should work |
56
|
|
|
|
|
|
|
on any version of perl released in the last five years. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
59
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
60
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
61
|
|
|
|
|
|
|
the minimum required perl. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 METHODS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 transform_node |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
my $node = $nester->transform_node($node); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This method alters the given node and returns it. Apart from that, the sky is |
70
|
|
|
|
|
|
|
the limit. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHOR |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Ricardo SIGNES <cpan@semiotic.systems> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
81
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |