From 350ee82a83a831c441da92ea9c54dc14fff46ab3 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Sun, 6 Dec 2015 08:00:15 -0800 Subject: [PATCH] add comment --- packages/babel-traverse/src/path/introspection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-traverse/src/path/introspection.js b/packages/babel-traverse/src/path/introspection.js index 61764a3bba..8b70dd1d54 100644 --- a/packages/babel-traverse/src/path/introspection.js +++ b/packages/babel-traverse/src/path/introspection.js @@ -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; }