| 1 | package ExtUtils::XSpp::Node::Comment; | ||
| 2 | 21 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 21 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 21 | ▶ | use base 'ExtUtils::XSpp::Node::Raw'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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<ExtUtils::XSpp::Node::Raw> 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<ExtUtils::XSpp::Node::Comment>. | ||
| 26 | |||
| 27 | Named parameters: C<rows> should be a reference to | ||
| 28 | an array of source code comment lines. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 5 | ▶ | sub init { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
documented
| |||
| 33 | 5 | my $this = shift; | |
| 34 | 5 | my %args = @_; | |
| 35 | |||
| 36 | 5 | $this->{ROWS} = $args{rows}; | |
| 37 | } | ||
| 38 | |||
| 39 | 5 | ▶ | sub print { |
|
Subroutine
print: called CC=1 SCAR=0.0
Pod
documented
| |||
| 40 | 5 | my $this = shift; | |
| 41 | 5 | my $state = shift; | |
| 42 | |||
| 43 | 5 | return "\n"; | |
| 44 | } | ||
| 45 | |||
| 46 | 21 | 1; | |