(ast: A, changes: Pick<Partial<AST>, "context" | "encoding">)
| 4360 | } |
| 4361 | |
| 4362 | function copyBody<A extends AST>(ast: A, changes: Pick<Partial<AST>, "context" | "encoding">): A { |
| 4363 | const out = copy(ast, changes) |
| 4364 | bodyOwners.set(out, getContextOwner(ast)) |
| 4365 | return out |
| 4366 | } |
| 4367 | |
| 4368 | /** @internal */ |
| 4369 | export function getContextOwner<A extends AST>(ast: A): A { |
no test coverage detected