(input: unknown, parent: object | undefined, owner: RpcPayload | null,
captures: StubHook[], instructions: unknown[])
| 299 | } |
| 300 | |
| 301 | function applyMapToElement(input: unknown, parent: object | undefined, owner: RpcPayload | null, |
| 302 | captures: StubHook[], instructions: unknown[]): RpcPayload { |
| 303 | // TODO(perf): I wonder if we could use .fromAppParams() instead of .deepCopyFrom()? It |
| 304 | // maybe wouldn't correctly handle the case of RpcTargets in the input, so we need a variant |
| 305 | // which takes an `owner`, which does add some complexity. |
| 306 | let inputHook = new PayloadStubHook(RpcPayload.deepCopyFrom(input, parent, owner)); |
| 307 | let mapper = new MapApplicator(captures, inputHook); |
| 308 | try { |
| 309 | return mapper.apply(instructions); |
| 310 | } finally { |
| 311 | mapper.dispose(); |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | mapImpl.applyMap = (input: unknown, parent: object | undefined, owner: RpcPayload | null, |
| 316 | captures: StubHook[], instructions: unknown[]) => { |
no test coverage detected
searching dependent graphs…