Skip to content

Commit

Permalink
isSplatted is always false for the simpler RubyCallNodeParameters con…
Browse files Browse the repository at this point in the history
…structor
  • Loading branch information
eregon committed Apr 18, 2023
1 parent 09225a1 commit f18b45f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public RubyCallNodeParameters(
RubyNode block,
ArgumentsDescriptor descriptor,
RubyNode[] arguments,
boolean isSplatted,
boolean ignoreVisibility) {
this(receiver, methodName, block, descriptor, arguments, isSplatted, ignoreVisibility, false, false, false);
this(receiver, methodName, block, descriptor, arguments, false, ignoreVisibility, false, false, false);
}

public RubyCallNodeParameters(
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/truffleruby/parser/Translator.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ protected RubyContextSourceNode createCallNode(RubyNode receiver, String method,
null,
EmptyArgumentsDescriptor.INSTANCE,
arguments,
false,
true);
return language.coreMethodAssumptions.createCallNode(parameters);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/truffleruby/yarp/YARPTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public RubyNode visitCallNode(Nodes.CallNode node) {

boolean ignoreVisibility = node.receiver == null;
return new RubyCallNode(new RubyCallNodeParameters(receiver, methodName, null,
EmptyArgumentsDescriptor.INSTANCE, translatedArguments, false, ignoreVisibility));
EmptyArgumentsDescriptor.INSTANCE, translatedArguments, ignoreVisibility));
}

@Override
Expand Down

0 comments on commit f18b45f

Please sign in to comment.