File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ module ts {
508
508
return ;
509
509
510
510
function visitNode ( child : IncrementalNode ) {
511
+ Debug . assert ( child . pos <= child . end ) ;
511
512
if ( child . pos > changeRangeOldEnd ) {
512
513
// Node is entirely past the change range. We need to move both its pos and
513
514
// end, forward or backward appropriately.
@@ -531,9 +532,11 @@ module ts {
531
532
}
532
533
533
534
// Otherwise, the node is entirely before the change range. No need to do anything with it.
535
+ Debug . assert ( fullEnd < changeStart ) ;
534
536
}
535
537
536
538
function visitArray ( array : IncrementalNodeArray ) {
539
+ Debug . assert ( array . pos <= array . end ) ;
537
540
if ( array . pos > changeRangeOldEnd ) {
538
541
// Array is entirely after the change range. We need to move it, and move any of
539
542
// its children.
You can’t perform that action at this time.
0 commit comments