(node)
| 28 | } from "./tag.js"; |
| 29 | |
| 30 | function getEndLocation(node) { |
| 31 | const endLocation = locEnd(node); |
| 32 | |
| 33 | // Element can be unclosed |
| 34 | if ( |
| 35 | node.kind === "element" && |
| 36 | !node.endSourceSpan && |
| 37 | isNonEmptyArray(node.children) |
| 38 | ) { |
| 39 | return Math.max(endLocation, getEndLocation(node.children.at(-1))); |
| 40 | } |
| 41 | |
| 42 | return endLocation; |
| 43 | } |
| 44 | |
| 45 | function printChild(path, options, print) { |
| 46 | const child = path.node; |
no test coverage detected
searching dependent graphs…