(path, options, print)
| 28 | printers: { |
| 29 | "baz-ast": { |
| 30 | print(path, options, print) { |
| 31 | const { type, text } = path.getValue(); |
| 32 | switch (type) { |
| 33 | case "root": |
| 34 | return path.map(print, "lines"); |
| 35 | case "json": |
| 36 | case "plain": |
| 37 | return [text, hardline]; |
| 38 | } |
| 39 | }, |
| 40 | embed: withOutdatedApi |
| 41 | ? (path, print, textToDoc) => { |
| 42 | const { type, text } = path.getValue(); |