add comment

This commit is contained in:
Amjad Masad 2015-12-06 08:00:15 -08:00
parent 036e90e9cc
commit 350ee82a83

View File

@ -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;
}