( ce: ComputeEngine, name: string )
| 445 | // recursion limit with an error. |
| 446 | if (callsFunction(literal.op1, call.operator)) return undefined; |
| 447 | |
| 448 | // `Function(body, param₁, …)`. Decline on an arity mismatch: that is the |
| 449 | // broadcast/partial-application path, which has its own semantics. |
| 450 | const params = literal.ops.slice(1); |
| 451 | if (params.length === 0 || params.length !== call.nops) return undefined; |
| 452 | |
| 453 | const substitution: Record<string, Expression> = {}; |
| 454 | for (let i = 0; i < params.length; i++) { |
| 455 | // `functionLiteralParameterName` unwraps a `Typed(x, type)` parameter, so |
| 456 | // a typed function literal (`(x: real) ↦ …`) inlines like a bare one. |
| 457 | const name = functionLiteralParameterName(params[i]); |
nothing calls this directly
no outgoing calls
no test coverage detected