( k: Key, value: unknown, node: BaseNode, input = value, pathKey: PropertyKey = k )
| 711 | const copies = !this.writesInto(ctx) |
| 712 | let out: any = data |
| 713 | const tfKey = ( |
| 714 | k: Key, |
| 715 | value: unknown, |
| 716 | node: BaseNode, |
| 717 | input = value, |
| 718 | pathKey: PropertyKey = k |
| 719 | ) => { |
| 720 | let transformed = travKey(pathKey, () => transform(ctx, node, input), ctx) |
| 721 | if (input !== value) |
| 722 | transformed = mergeTransformed(input, value, transformed) |
| 723 | if (Object.is(transformed, value)) return value |
| 724 | if (out === data && copies) out = this.copy(data) |
| 725 | setOwnValue(out, k, transformed) |
| 726 | return transformed |
| 727 | } |
| 728 | const hasIndexedProp = this.hasIndexedProp |
| 729 | const props = this.inOrder |
| 730 | for (let i = 0; i < props.length; i++) { |
no test coverage detected