our
$VERSION
= 0.001_000;
our
hashref
$properties
= {};
sub
ast_to_rperl__generate {
{
my
string_hashref::method
$RETURN_TYPE
};
(
my
object
$self
,
my
string_hashref
$modes
) =
@ARG
;
my
string_hashref
$rperl_source_group
= {
PMC
=>
q{}
};
my
string
$no_critic_qw
=
$self
->{children}->[0];
my
object
$critic_words
=
$self
->{children}->[1];
my
string
$right_parenthesis
=
$self
->{children}->[2];
$rperl_source_group
->{PMC} .=
$no_critic_qw
;
foreach
my
object
$critic_word
(@{
$critic_words
->{children}}) {
$rperl_source_group
->{PMC} .=
$critic_word
->{attr} .
' '
;
}
chop
$rperl_source_group
->{PMC};
$rperl_source_group
->{PMC} .=
$right_parenthesis
.
"\n"
;
return
$rperl_source_group
;
}
sub
ast_to_cpp__generate__CPPOPS_PERLTYPES {
{
my
string_hashref::method
$RETURN_TYPE
};
(
my
object
$self
,
my
string_hashref
$modes
) =
@ARG
;
my
string_hashref
$cpp_source_group
= {
CPP
=>
q{// <<< RP::CU::Cr __DUMMY_SOURCE_CODE CPPOPS_PERLTYPES >>>}
.
"\n"
};
return
$cpp_source_group
;
}
sub
ast_to_cpp__generate__CPPOPS_CPPTYPES {
{
my
string_hashref::method
$RETURN_TYPE
};
(
my
object
$self
,
my
string_hashref
$modes
) =
@ARG
;
my
string_hashref
$cpp_source_group
= {
CPP
=>
q{// <<< RP::CU::Cr __DUMMY_SOURCE_CODE CPPOPS_CPPTYPES >>>}
.
"\n"
};
return
$cpp_source_group
;
}
1;