(str: string, options: any)
| 3088 | } |
| 3089 | |
| 3090 | function nodeStr(str: string, options: any) { |
| 3091 | isString.assert(str); |
| 3092 | switch (options.quote) { |
| 3093 | case "auto": { |
| 3094 | const double = jsSafeStringify(str); |
| 3095 | const single = swapQuotes(jsSafeStringify(swapQuotes(str))); |
| 3096 | return double.length > single.length ? single : double; |
| 3097 | } |
| 3098 | case "single": |
| 3099 | return swapQuotes(jsSafeStringify(swapQuotes(str))); |
| 3100 | case "double": |
| 3101 | default: |
| 3102 | return jsSafeStringify(str); |
| 3103 | } |
| 3104 | } |
| 3105 | |
| 3106 | function maybeAddSemicolon(lines: any) { |
| 3107 | const eoc = lastNonSpaceCharacter(lines); |
no test coverage detected
searching dependent graphs…