( pipedFromCtx: Traversal, node: BaseNode, data: unknown )
| 184 | // since a labeled narrow of this Type's that throws leaves its label set, |
| 185 | // which a caller catching it, as pipe.try() does, would then raise under |
| 186 | const pipeCalled = ( |
| 187 | pipedFromCtx: Traversal, |
| 188 | node: BaseNode, |
| 189 | data: unknown |
| 190 | ): unknown => { |
| 191 | const ctx = siteTraversalOf(pipedFromCtx) |
| 192 | const lbl = ctx.lbl |
| 193 | if (lbl !== undefined) ctx.lbl = undefined |
| 194 | try { |
| 195 | return pipe(ctx, node, data) |
| 196 | } finally { |
| 197 | if (ctx.lbl !== lbl) ctx.lbl = lbl |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | // what a node is called as, so a Type deferred until it's read is the same function |
| 202 | const callableOf = (cache: NodeCache) => |
no test coverage detected