Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the new compilejast list ops.
  • Loading branch information
donaldh committed Sep 25, 2013
1 parent f674b87 commit 6758068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vm/jvm/HLL/Backend.nqp
Expand Up @@ -61,11 +61,11 @@ class HLL::Backend::JVM {

method classfile($jast, *%adverbs) {
if (%adverbs<target> eq 'classfile' || %adverbs<target> eq 'jar') && %adverbs<output> {
nqp::compilejasttofile($jast.dump(), %adverbs<output>);
nqp::compilejastlinestofile($jast.dump(), %adverbs<output>);
nqp::null()
}
else {
nqp::compilejast($jast.dump());
nqp::compilejastlines($jast.dump());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/vm/jvm/QAST/JASTNodes.nqp
Expand Up @@ -42,7 +42,7 @@ class JAST::Class is JAST::Node {
for @!methods {
$_.dump(@dumped);
}
return nqp::join("\n", @dumped);
return @dumped;
}
}

Expand Down

0 comments on commit 6758068

Please sign in to comment.