add comment
This commit is contained in:
parent
036e90e9cc
commit
350ee82a83
@ -361,6 +361,7 @@ export function _resolve(dangerous?, resolved?): ?NodePath {
|
||||
|
||||
if (binding.path !== this) {
|
||||
let ret = binding.path.resolve(dangerous, resolved);
|
||||
// If the identifier resolves to parent node then we can't really resolve it.
|
||||
if (this.find(parent => parent.node === ret.node)) return;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user