( path: any, options: any, print: any, )
| 2876 | } |
| 2877 | |
| 2878 | function maybePrintImportAssertions( |
| 2879 | path: any, |
| 2880 | options: any, |
| 2881 | print: any, |
| 2882 | ): Lines { |
| 2883 | const n = path.getValue(); |
| 2884 | if (n.assertions && n.assertions.length > 0) { |
| 2885 | const parts: (string | Lines)[] = [" assert {"]; |
| 2886 | const printed = path.map(print, "assertions"); |
| 2887 | const flat = fromString(", ").join(printed); |
| 2888 | if (flat.length > 1 || flat.getLineLength(1) > options.wrapColumn) { |
| 2889 | parts.push( |
| 2890 | "\n", |
| 2891 | fromString(",\n").join(printed).indent(options.tabWidth), |
| 2892 | "\n}", |
| 2893 | ); |
| 2894 | } else { |
| 2895 | parts.push(" ", flat, " }"); |
| 2896 | } |
| 2897 | return concat(parts); |
| 2898 | } |
| 2899 | return fromString(""); |
| 2900 | } |
| 2901 | |
| 2902 | function printExportDeclaration(path: any, options: any, print: any) { |
| 2903 | const decl = path.getValue(); |
no test coverage detected
searching dependent graphs…