(path: any, options: any, print: any)
| 2814 | } |
| 2815 | |
| 2816 | function printArgumentsList(path: any, options: any, print: any) { |
| 2817 | const printed = path.map(print, "arguments"); |
| 2818 | const trailingComma = util.isTrailingCommaEnabled(options, "parameters"); |
| 2819 | |
| 2820 | let joined = fromString(", ").join(printed); |
| 2821 | if (joined.getLineLength(1) > options.wrapColumn) { |
| 2822 | joined = fromString(",\n").join(printed); |
| 2823 | return concat([ |
| 2824 | "(\n", |
| 2825 | joined.indent(options.tabWidth), |
| 2826 | trailingComma ? ",\n)" : "\n)", |
| 2827 | ]); |
| 2828 | } |
| 2829 | |
| 2830 | return concat(["(", joined, ")"]); |
| 2831 | } |
| 2832 | |
| 2833 | function printFunctionParams(path: any, options: any, print: any) { |
| 2834 | const fun = path.getValue(); |
no test coverage detected
searching dependent graphs…