Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -119,10 +119,12 @@ public RubyNode visitArgsNode(org.jruby.ast.ArgsNode node) {

if (node.getPost() != null) {
state = State.POST;
index = -1;
org.jruby.ast.Node[] children = node.getPost().children();
for (index = children.length - 1; index >= 0; index--) {
sequence.add(children[index].accept(this));
for (int i = children.length - 1; i >= 0; i--) {
sequence.add(children[i].accept(this));
required++;
index--;
}
}

@@ -371,9 +373,11 @@ public RubyNode visitMultipleAsgnNode(MultipleAsgnNode node) {

if (node.getPost() != null) {
org.jruby.ast.Node[] children = node.getPost().children();
for (index = children.length - 1; index >= 0; index--) {
notNilSequence.add(children[index].accept(this));
index = -1;
for (int i = children.length - 1; i >= 0; i--) {
notNilSequence.add(children[i].accept(this));
required++;
index--;
}
}

0 comments on commit ee9cc93

Please sign in to comment.