@@ -469,7 +469,7 @@ public PathResolverSnapshot AddModulePath(in string modulePath, long moduleFileS
469
469
470
470
var newEnd = CreateNewNodes ( lastEdge , unmatchedPathSpan , moduleFileSize , out fullModuleName ) ;
471
471
var newRoot = RewriteTreeSpine ( lastEdge , newEnd ) ;
472
- return ImmutableReplaceRoot ( newRoot , lastEdge . FirstEdge . nodeIndexInParent ) ;
472
+ return ImmutableReplaceRoot ( newRoot , lastEdge . FirstEdge . NodeIndexInParent ) ;
473
473
}
474
474
475
475
public PathResolverSnapshot RemoveModulePath ( in string modulePath ) {
@@ -480,20 +480,20 @@ public PathResolverSnapshot RemoveModulePath(in string modulePath) {
480
480
481
481
var moduleNode = lastEdge . Node ;
482
482
var moduleParent = lastEdge . ParentNode ;
483
- var moduleIndex = lastEdge . nodeIndexInParent ;
483
+ var moduleIndex = lastEdge . NodeIndexInParent ;
484
484
485
485
var newParent = moduleNode . Children . Count > 0
486
486
? moduleParent . ReplaceChildAt ( moduleNode . ToPackage ( ) , moduleIndex ) // preserve node as package
487
487
: moduleParent . RemoveChildAt ( moduleIndex ) ;
488
488
489
489
if ( lastEdge . IsNonRooted ) {
490
- var directoryIndex = lastEdge . Previous . nodeIndexInParent ;
490
+ var directoryIndex = lastEdge . Previous . NodeIndexInParent ;
491
491
return ReplaceNonRooted ( _nonRooted . ReplaceChildAt ( newParent , directoryIndex ) ) ;
492
492
}
493
493
494
494
lastEdge = lastEdge . Previous ;
495
495
var newRoot = RewriteTreeSpine ( lastEdge , newParent ) ;
496
- return ImmutableReplaceRoot ( newRoot , lastEdge . FirstEdge . nodeIndexInParent ) ;
496
+ return ImmutableReplaceRoot ( newRoot , lastEdge . FirstEdge . NodeIndexInParent ) ;
497
497
}
498
498
499
499
private bool MatchNodePathInNonRooted ( string normalizedPath , out Edge lastEdge , out StringSpan unmatchedPathSpan ) {
@@ -612,7 +612,7 @@ private Node AddToNonRooted(in Edge lastEdge, in StringSpan unmatchedPathSpan, i
612
612
return _nonRooted . AddChild ( Node . CreatePackage ( directory , directory , moduleNode ) ) ;
613
613
}
614
614
615
- var directoryIndex = lastEdge . nodeIndexInParent ;
615
+ var directoryIndex = lastEdge . NodeIndexInParent ;
616
616
var directoryNode = lastEdge . Node . AddChild ( moduleNode ) ;
617
617
return _nonRooted . ReplaceChildAt ( directoryNode , directoryIndex ) ;
618
618
}
@@ -713,7 +713,7 @@ private static void AppendName(StringBuilder builder, string name)
713
713
714
714
private static Node RewriteTreeSpine ( Edge lastEdge , Node newNode ) {
715
715
while ( lastEdge . ParentNode != null ) {
716
- var newParentNode = lastEdge . ParentNode . ReplaceChildAt ( newNode , lastEdge . nodeIndexInParent ) ;
716
+ var newParentNode = lastEdge . ParentNode . ReplaceChildAt ( newNode , lastEdge . NodeIndexInParent ) ;
717
717
lastEdge = lastEdge . Previous ;
718
718
newNode = newParentNode ;
719
719
}
0 commit comments