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>)
| 1755 | /// including host API chains (#1707). Keep the existing window namespace |
| 1756 | /// escape; call-result and `this` receivers are outside this guard. |
| 1757 | fn is_unresolved_member_chain(&self, receiver: Node<'t>) -> bool { |
| 1758 | let mut cur = receiver; |
| 1759 | if !matches!(cur.kind(), "member_expression" | "subscript_expression") { |
| 1760 | return false; |
| 1761 | } |
| 1762 | while matches!(cur.kind(), "member_expression" | "subscript_expression") { |
| 1763 | match cur.child_by_field_name("object") { |
| 1764 | Some(next) => cur = next, |
| 1765 | None => return false, |
| 1766 | } |
| 1767 | } |
| 1768 | cur.kind() == "identifier" && self.text(cur) != "window" |
| 1769 | } |
| 1770 | |
| 1771 | pub(super) fn extract_call(&mut self, node: Node<'t>) { |
| 1772 | if self.stack.is_empty() { |