line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ExtUtils::XSpp::Node::Comment; |
2
|
21
|
|
|
21
|
|
117
|
use strict; |
|
21
|
|
|
|
|
46
|
|
|
21
|
|
|
|
|
852
|
|
3
|
21
|
|
|
21
|
|
118
|
use warnings; |
|
21
|
|
|
|
|
47
|
|
|
21
|
|
|
|
|
1491
|
|
4
|
21
|
|
|
21
|
|
118
|
use base 'ExtUtils::XSpp::Node::Raw'; |
|
21
|
|
|
|
|
31
|
|
|
21
|
|
|
|
|
2181
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
ExtUtils::XSpp::Node::Comment - Node representing a comment in the source file |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 DESCRIPTION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
An L subclass representing a piece of raw data |
13
|
|
|
|
|
|
|
that should be included in the output verbatim, but with comment markers prefixed. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
// This is a comment! |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
would become something like |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
## This is a comment! |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 new |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Creates a new C. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Named parameters: C should be a reference to |
28
|
|
|
|
|
|
|
an array of source code comment lines. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub init { |
33
|
5
|
|
|
5
|
1
|
22
|
my $this = shift; |
34
|
5
|
|
|
|
|
17
|
my %args = @_; |
35
|
|
|
|
|
|
|
|
36
|
5
|
|
|
|
|
39
|
$this->{ROWS} = $args{rows}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub print { |
40
|
5
|
|
|
5
|
1
|
10
|
my $this = shift; |
41
|
5
|
|
|
|
|
30
|
my $state = shift; |
42
|
|
|
|
|
|
|
|
43
|
5
|
|
|
|
|
20
|
return "\n"; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |