Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move method description above the correct method.
  • Loading branch information
pmurias committed Sep 17, 2014
1 parent f1cfa6d commit 1acca08
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/vm/js/QAST/Compiler.nqp
Expand Up @@ -736,10 +736,6 @@ class QAST::CompilerJS does DWIMYNameMangling {
}


# TODO improve comments
# turns a list of arguments for a call into a js code according to our most generall calling convention
# $args is the list of QAST::Node arguments
# returns either a js code string which contains the arguments, or a list of js code strings that when executed create arrays of arguments (suitable for concatenating and passing into Function.apply)

sub join_exprs($delim, @chunks) {
my @exprs;
Expand All @@ -749,6 +745,11 @@ class QAST::CompilerJS does DWIMYNameMangling {
nqp::join($delim, @exprs);
}

# TODO improve comments
# turns a list of arguments for a call into a js code according to our most generall calling convention
# $args is the list of QAST::Node arguments
# returns either a js code string which contains the arguments, or a list of js code strings that when executed create arrays of arguments (suitable for concatenating and passing into Function.apply)

method args($args) {
my @setup;
my @args;
Expand Down

0 comments on commit 1acca08

Please sign in to comment.