(ast: A, changes: Partial<AST>)
| 4356 | const bodyOwners = new WeakMap<AST, AST>() |
| 4357 | |
| 4358 | function copy<A extends AST>(ast: A, changes: Partial<AST>): A { |
| 4359 | return Object.assign(Object.create(Object.getPrototypeOf(ast)), ast, changes) as A |
| 4360 | } |
| 4361 | |
| 4362 | function copyBody<A extends AST>(ast: A, changes: Pick<Partial<AST>, "context" | "encoding">): A { |
| 4363 | const out = copy(ast, changes) |
no test coverage detected