(doc, options)
| 389 | |
| 390 | // Doesn't handle shebang for now |
| 391 | async function formatDoc(doc, options) { |
| 392 | const text = printDocToDebug(doc); |
| 393 | const { formatted } = await formatWithCursor(text, { |
| 394 | ...options, |
| 395 | parser: "__js_expression", |
| 396 | }); |
| 397 | |
| 398 | return formatted; |
| 399 | } |
| 400 | |
| 401 | async function printToDoc(originalText, options) { |
| 402 | options = await normalizeFormatOptions(options); |
no test coverage detected
searching dependent graphs…