(ctx, node, data)
| 659 | : errorsOf(ctx) |
| 660 | |
| 661 | export const pipe: TraversePipe = (ctx, node, data) => { |
| 662 | if (!node.hasAlias) return pipeAcyclicOf(node)(ctx, node, data) |
| 663 | if (!node.allows(data)) { |
| 664 | applyPipedResolution(ctx, node, data) |
| 665 | return errorsOf(ctx) |
| 666 | } |
| 667 | if (!node.tfs) return data |
| 668 | // a morph's output can share objects an earlier pass cached |
| 669 | const { tfdById, isTree } = ctx |
| 670 | ctx.tfdById = undefined |
| 671 | ctx.isTree = true |
| 672 | const result = transformPiped(ctx, node, data, transform) |
| 673 | ctx.tfdById = tfdById |
| 674 | ctx.isTree = isTree |
| 675 | return result |
| 676 | } |
| 677 | |
| 678 | const allowsPiped = ( |
| 679 | ctx: InternalTraversal, |
nothing calls this directly
no test coverage detected