| 1 | package Dallycot::AST::TypePromotion; | ||
| 2 | 29 | our $AUTHORITY = 'cpan:JSMITH'; | |
| 3 | |||
| 4 | # ABSTRACT: Manages the conversion of a value to a new type | ||
| 5 | |||
| 6 | 29 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 29 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 29 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 29 | ▶ | use parent 'Dallycot::AST'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | sub to_string { | ||
| 13 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
to_string: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my @bits = @{$self}; | |
| 15 | |||
| 16 | 0 | my $expr = shift @bits; | |
| 17 | |||
| 18 | 0 | return join( "^^", $expr->to_string, @bits ); | |
| 19 | } | ||
| 20 | |||
| 21 | 29 | 1; | |