Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] Implement compilation of pasttype return (though there's no …
…handler installed to catch it just yet.
  • Loading branch information
jnthn committed Oct 29, 2010
1 parent c04f22c commit 25487a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dotnet/compiler/PAST2DNSTCompiler.pm
Expand Up @@ -697,6 +697,15 @@ our multi sub dnst_for(PAST::Op $op) {
return $result;
}

elsif $op.pasttype eq 'return' {
return DNST::MethodCall.new(
:on('Ops'), :name('throw_lexical'),
'TC',
dnst_for((@($op))[0]),
dnst_for(PAST::Val.new( :value(57) ))
);
}

else {
pir::die("Don't know how to compile pasttype " ~ $op.pasttype);
}
Expand Down

0 comments on commit 25487a2

Please sign in to comment.