Add assert.

This commit is contained in:
Cyrus Najmabadi 2014-12-12 00:48:08 -08:00
parent 15f3b89297
commit 7eb0f42560

View File

@ -490,6 +490,9 @@ module ts {
// called with 'isListElement', we don't want to redo the work when parseListElement
// is called immediately after.
lastQueriedPosition = position;
// Either we don'd have a node, or we have a node at the position being asked for.
Debug.assert(!current || current.pos === position);
return <IncrementalNode>current;
}
};