( ce: ComputeEngine, ops: Iterable<Expression> )
| 310 | |
| 311 | /** True when `result` is the inert application that `literal` itself answers |
| 312 | * for an argument whose type does not decide an annotation. An inner literal |
| 313 | * can answer such a node as the value of the body of `literal`: that is a |
| 314 | * value of `literal`, and the call of `literal` does not wait. */ |
| 315 | export function isUndecidedLiteralApplication( |
| 316 | result: Expression | undefined, |
| 317 | literal: Expression |
| 318 | ): boolean { |
| 319 | return ( |
| 320 | result !== undefined && |
| 321 | UNDECIDED_APPLICATIONS.has(result) && |
| 322 | isFunction(result, 'Apply') && |
| 323 | result.op1 === literal |
| 324 | ); |
| 325 | } |
| 326 | |
| 327 | /*** |
| 328 | * ### THEORY OF OPERATIONS |
| 329 | * |
| 330 | * The body of a `["Function"]` expression is a `["Block"]` expression, |
| 331 | * which is scoped. The function arguments are declared in that scope as well. |
| 332 | * |
| 333 | * Some expressions with anonymous parameters (e.g. `["Add", "_", 1]`) |
no test coverage detected