Skip to content

Commit 3b78884

Browse files
committed
fix "... = ..." in deparsed fun calls
1 parent 2676cbe commit 3b78884

File tree

1 file changed

+3
-0
lines changed
  • com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime

1 file changed

+3
-0
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RDeparse.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,9 @@ private DeparseVisitor appendArgs(ArgumentsSignature signature, RSyntaxElement[]
839839
} else {
840840
append(quotify(name, BACKTICK));
841841
}
842+
if ("...".equals(name) && argument instanceof RSyntaxLookup && "...".equals(((RSyntaxLookup) argument).getIdentifier())) {
843+
continue;
844+
}
842845
if (!formals || argument != null) {
843846
append(" = ");
844847
}

0 commit comments

Comments
 (0)