(f: (ast: AST) => AST)
| 3415 | |
| 3416 | /** @internal */ |
| 3417 | export function applyToLastLink(f: (ast: AST) => AST) { |
| 3418 | return <A extends AST>(ast: A): A => ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, f)) : ast |
| 3419 | } |
| 3420 | |
| 3421 | /** @internal */ |
| 3422 | export function replaceContextLastLink<A extends AST>(ast: A, context: Context): A { |
no test coverage detected