Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] First couple of Temp => Local switches. Seems to work.
  • Loading branch information
jnthn committed Dec 4, 2010
1 parent 903fb1c commit 2bb3773
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotnet/compiler/PAST2DNSTCompiler.pm
Expand Up @@ -1721,15 +1721,15 @@ sub emit_say($arg) {
}

sub temp_int($arg?, :$name) {
DNST::Temp.new(
:name(get_unique_id('int_' ~ ($name || ''))), :type('int'),
DNST::Local.new(
:name(get_unique_id('int_' ~ ($name || ''))), :isdecl(1), :type('int'),
pir::defined($arg) ?? dnst_for($arg) !! lit(0)
)
}

sub temp_str($arg?, :$name) {
DNST::Temp.new(
:name(get_unique_id('string_' ~ ($name || ''))), :type('string'),
DNST::Local.new(
:name(get_unique_id('string_' ~ ($name || ''))), :isdecl(1), :type('string'),
pir::defined($arg) ?? dnst_for($arg) !! lits("")
)
}
Expand Down

0 comments on commit 2bb3773

Please sign in to comment.