(f: (ast: AST) => AST)
| 4443 | |
| 4444 | /** @internal */ |
| 4445 | export function applyToLastLink(f: (ast: AST) => AST) { |
| 4446 | return <A extends AST>(ast: A): A => ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, f)) : ast |
| 4447 | } |
| 4448 | |
| 4449 | /** @internal */ |
| 4450 | export function replaceContextLastLink<A extends AST>(ast: A, context: Context): A { |
no test coverage detected