(ast: A, encoding: Encoding | undefined)
| 4378 | |
| 4379 | /** @internal */ |
| 4380 | export function replaceEncoding<A extends AST>(ast: A, encoding: Encoding | undefined): A { |
| 4381 | return ast.encoding === encoding ? ast : copyBody(ast, { encoding }) |
| 4382 | } |
| 4383 | |
| 4384 | /** @internal */ |
| 4385 | export function replaceContext<A extends AST>(ast: A, context: Context | undefined): A { |
no test coverage detected