support ParenthesizedExpression in types.getIds

This commit is contained in:
Sebastian McKenzie 2014-11-09 22:26:48 +11:00
parent 72369c90a2
commit 361ef02a88

View File

@ -185,6 +185,8 @@ t.getIds = function (node, map) {
search = search.concat(id.specifiers);
} else if (t.isMemberExpression(id)) {
search.push(id.object);
} else if (t.isParenthesizedExpression(id)) {
search.push(id.expression);
}
}