ignore more weirdness

This commit is contained in:
dakkar 2024-10-17 10:35:14 +01:00
parent b0bc24f01b
commit d466e05eda
2 changed files with 5 additions and 2 deletions

View file

@ -12,6 +12,8 @@
function collectMembers(node) {
if (!node) return [];
if (node.type !== 'MemberExpression') return [];
// this is something like `foo[bar]`
if (node.computed) return [];
return [ node.property.name, ...collectMembers(node.parent) ];
}