(plugin, astFormat)
| 69 | } |
| 70 | |
| 71 | async function initPrinter(plugin, astFormat) { |
| 72 | const printerOrPrinterInitFunction = plugin.printers[astFormat]; |
| 73 | const printer = |
| 74 | typeof printerOrPrinterInitFunction === "function" |
| 75 | ? await printerOrPrinterInitFunction() |
| 76 | : printerOrPrinterInitFunction; |
| 77 | return normalizePrinter(printer); |
| 78 | } |
| 79 | |
| 80 | const PRINTER_NORMALIZED_MARK = Symbol("PRINTER_NORMALIZED_MARK"); |
| 81 | function normalizePrinterWithoutCache(printer) { |
no test coverage detected
searching dependent graphs…