Fixed incorrect check in tryPushNode

This commit is contained in:
Ron Buckton 2015-10-16 13:39:21 -07:00
parent 6e461e330e
commit 2403cc4414

View file

@ -992,7 +992,7 @@ namespace ts {
/** Pushes a node onto the stack if it is not already at the top of the stack. */
function tryPushNode(node: Node): boolean {
if (currentNode !== node) {
if (currentNode === node) {
return false;
}