mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Add assert.
This commit is contained in:
parent
15f3b89297
commit
7eb0f42560
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user