(node: Node)
| 3506 | |
| 3507 | // e.g. `V.and()` or `V()`, but not `V ?? x` or `V?.and()` |
| 3508 | const throwsUnset = (node: Node): boolean => { |
| 3509 | const [operand, parent] = operatorOf(node) |
| 3510 | return ( |
| 3511 | (parent?.type === "MemberExpression" && |
| 3512 | parent.object === operand && |
| 3513 | !parent.optional) || |
| 3514 | (parent?.type === "CallExpression" && |
| 3515 | parent.callee === operand && |
| 3516 | !parent.optional) |
| 3517 | ) |
| 3518 | } |
| 3519 | |
| 3520 | // the expression a variable is only ever set to |
| 3521 | export const initOf = (binding: Binding): Node | undefined => { |
no test coverage detected