Always recurse into children in the binder in a uniform manner.

This commit is contained in:
Cyrus Najmabadi 2015-04-19 14:15:49 -07:00
parent 62b15de666
commit e5910af2c8

View File

@ -575,10 +575,8 @@ module ts {
bindChildren(node, 0, /*isBlockScopeContainer*/ true);
break;
default:
let saveParent = parent;
parent = node;
forEachChild(node, bind);
parent = saveParent;
bindChildren(node, 0, /*isBlockScopeContainer*/ false);
break;
}
}