ignore more weirdness
This commit is contained in:
parent
b0bc24f01b
commit
d466e05eda
2 changed files with 5 additions and 2 deletions
|
|
@ -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) ];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue