(ast: AST)
| 3426 | /** @internal */ |
| 3427 | export function applyToSelfOrLastLinkEncoding(f: (ast: AST) => AST) { |
| 3428 | function out(ast: AST): AST { |
| 3429 | return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f(ast) |
| 3430 | } |
| 3431 | return memoize(out) |
| 3432 | } |
| 3433 |
nothing calls this directly
no test coverage detected