(node: t.Node, text: string)
| 26 | } |
| 27 | |
| 28 | export function spliceRange(node: t.Node, text: string): Splice { |
| 29 | return { from: node.start ?? 0, to: node.end ?? 0, text }; |
| 30 | } |
| 31 | |
| 32 | // Emit a JSX attribute value: `"foo"` when the value is round-trip-safe |
| 33 | // inside double quotes; otherwise wrap in `{...}` so escapes work. |
no outgoing calls
no test coverage detected