Fixed incorrect check in tryPushNode
This commit is contained in:
parent
6e461e330e
commit
2403cc4414
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue