(root: AST, edge: Suspend["thunk"])
| 4731 | } |
| 4732 | |
| 4733 | function canReuse(root: AST, edge: Suspend["thunk"]): boolean { |
| 4734 | function same(ast: AST): boolean { |
| 4735 | if (isSuspend(ast)) return ast.thunk === edge |
| 4736 | return !hasDirectionalParser(ast) && |
| 4737 | !("encodingChecks" in ast && ast.checks && projectChecks(ast, ast.checks) !== ast.checks) |
| 4738 | } |
| 4739 | return everyNode(root, same) |
| 4740 | } |
| 4741 | |
| 4742 | const types = new WeakMap<AST, AST>() |
| 4743 | const reversed = new WeakMap<AST, AST>() |
no test coverage detected