(ast: AST)
| 4454 | /** @internal */ |
| 4455 | export function applyToSelfOrLastLinkEncoding(f: (ast: AST) => AST) { |
| 4456 | function out(ast: AST): AST { |
| 4457 | return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f(ast) |
| 4458 | } |
| 4459 | return memoize(out) |
| 4460 | } |
| 4461 |
no test coverage detected