Identifier-rooted member chains have no inferred property type (#1566), including host API chains (#1707). Keep the existing window namespace escape; call-result and `this` receivers are outside this guard.
(&self, receiver: Node<'t>)
| 1617 | /// including host API chains (#1707). Keep the existing window namespace |
| 1618 | /// escape; call-result and `this` receivers are outside this guard. |
| 1619 | fn is_unresolved_member_chain(&self, receiver: Node<'t>) -> bool { |
| 1620 | let mut cur = receiver; |
| 1621 | if !matches!(cur.kind(), "member_expression" | "subscript_expression") { |
| 1622 | return false; |
| 1623 | } |
| 1624 | while matches!(cur.kind(), "member_expression" | "subscript_expression") { |
| 1625 | match cur.child_by_field_name("object") { |
| 1626 | Some(next) => cur = next, |
| 1627 | None => return false, |
| 1628 | } |
| 1629 | } |
| 1630 | cur.kind() == "identifier" && self.text(cur) != "window" |
| 1631 | } |
| 1632 | |
| 1633 | pub(super) fn extract_call(&mut self, node: Node<'t>) { |
| 1634 | if self.stack.is_empty() { |