wrapList(cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs(), false, COMMA, args); } finally { indent = oldIndent;
@Override public void visitApply(JCMethodInvocation tree) { int prevPrec = this.prec; this.prec = TreeInfo.postfixPrec; printMethodSelect(tree); this.prec = prevPrec; print(cs.spaceBeforeMethodCallParen() ? " (" : "("); if (cs.spaceWithinMethodCallParens() && tree.args.nonEmpty()) print(' '); wrapTrees(tree.args, cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs() ? out.col : out.leftMargin + cs.getContinuationIndentSize()); print(cs.spaceWithinMethodCallParens() && tree.args.nonEmpty() ? " )" : ")"); }
wrapList(cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs(), false, COMMA, args); } finally { indent = oldIndent;
wrapTrees(newClsTree.args, cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs() ? out.col : out.leftMargin + cs.getContinuationIndentSize() ); print(cs.spaceWithinMethodCallParens() ? " )" : ")");
wrapList(cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs(), false, COMMA, args); } finally { indent = oldIndent;
@Override public void visitNewClass(JCNewClass tree) { if (tree.encl != null) { printExpr(tree.encl); print('.'); } print("new "); if (tree.typeargs.nonEmpty()) { print("<"); printExprs(tree.typeargs); print(">"); } if (tree.encl == null) print(tree.clazz); else if (tree.clazz.type != null) print(tree.clazz.type.tsym.name); else print(tree.clazz); print(cs.spaceBeforeMethodCallParen() ? " (" : "("); if (cs.spaceWithinMethodCallParens() && tree.args.nonEmpty()) print(' '); wrapTrees(tree.args, cs.wrapMethodCallArgs(), cs.alignMultilineCallArgs() ? out.col : out.leftMargin + cs.getContinuationIndentSize()); print(cs.spaceWithinMethodCallParens() && tree.args.nonEmpty() ? " )" : ")"); if (tree.def != null) { printNewClassBody(tree); } }
token = findFirstNonWhitespaceToken(startOffset, lastPos); if (token != null && token.token().id() == JavaTokenId.COMMA) { currentIndent = getMultilineIndent(((MethodInvocationTree)last).getArguments(), path, token.offset(), currentIndent, cs.alignMultilineCallArgs(), true); } else { token = findFirstNonWhitespaceToken(startOffset, endOffset);