|
@ -10,8 +10,7 @@ export default function isReference ( node, parent ) { |
|
|
if ( !parent ) return true; |
|
|
if ( !parent ) return true; |
|
|
|
|
|
|
|
|
// TODO is this right?
|
|
|
// TODO is this right?
|
|
|
if ( parent.type === 'MemberExpression' || |
|
|
if ( parent.type === 'MemberExpression' || parent.type === 'MethodDefinition' ) { |
|
|
parent.type === 'MethodDefinition' ) { |
|
|
|
|
|
return parent.computed || node === parent.object; |
|
|
return parent.computed || node === parent.object; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|