add support for bind expression to t.isReferenced
This commit is contained in:
parent
3f69534ae5
commit
3831b1b37a
@ -34,6 +34,7 @@ export function isReferenced(node: Object, parent: Object): boolean {
|
||||
// no: parent.NODE
|
||||
case "MemberExpression":
|
||||
case "JSXMemberExpression":
|
||||
case "BindExpression":
|
||||
if (parent.property === node && parent.computed) {
|
||||
return true;
|
||||
} else if (parent.object === node) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user