( call: CallExpression, fn: FunctionNode, module: SourceModule, kindOfKey: KindOfKey )
| 4282 | } |
| 4283 | |
| 4284 | private applicationOf( |
| 4285 | call: CallExpression, |
| 4286 | fn: FunctionNode, |
| 4287 | module: SourceModule, |
| 4288 | kindOfKey: KindOfKey |
| 4289 | ): Application { |
| 4290 | const params = runtimeParamsOf(fn) |
| 4291 | const args = params.map((_, i) => |
| 4292 | this.argKindOf(call, params, i, module, kindOfKey) |
| 4293 | ) |
| 4294 | let applications = this.applicationsByFn.get(fn) |
| 4295 | if (!applications) this.applicationsByFn.set(fn, (applications = new Map())) |
| 4296 | const id = args.join() |
| 4297 | let result = applications.get(id) |
| 4298 | if (!result) applications.set(id, (result = { fn, args })) |
| 4299 | return result |
| 4300 | } |
| 4301 | |
| 4302 | private appliedKindOfKey( |
| 4303 | { fn, args }: Application, |
no test coverage detected