File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -480,36 +480,36 @@ class SymbolTree {
480
480
return - 1 ;
481
481
}
482
482
483
- let index = childNode . getCachedIndex ( parentNode ) ;
483
+ let currentIndex = childNode . getCachedIndex ( parentNode ) ;
484
484
485
- if ( index >= 0 ) {
486
- return index ;
485
+ if ( currentIndex >= 0 ) {
486
+ return currentIndex ;
487
487
}
488
488
489
- index = 0 ;
489
+ currentIndex = 0 ;
490
490
let object = parentNode . firstChild ;
491
491
492
492
if ( parentNode . childIndexCachedUpTo ) {
493
493
const cachedUpToNode = this . _node ( parentNode . childIndexCachedUpTo ) ;
494
494
object = cachedUpToNode . nextSibling ;
495
- index = cachedUpToNode . getCachedIndex ( parentNode ) + 1 ;
495
+ currentIndex = cachedUpToNode . getCachedIndex ( parentNode ) + 1 ;
496
496
}
497
497
498
498
while ( object ) {
499
499
const node = this . _node ( object ) ;
500
- node . setCachedIndex ( parentNode , index ) ;
500
+ node . setCachedIndex ( parentNode , currentIndex ) ;
501
501
502
502
if ( object === child ) {
503
503
break ;
504
504
}
505
505
506
- ++ index ;
506
+ ++ currentIndex ;
507
507
object = node . nextSibling ;
508
508
}
509
509
510
510
parentNode . childIndexCachedUpTo = child ;
511
511
512
- return index ;
512
+ return currentIndex ;
513
513
}
514
514
515
515
/**
You can’t perform that action at this time.
0 commit comments