File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6008,16 +6008,16 @@ module ts {
6008
6008
return symbol . flags & SymbolFlags . ValueModule && symbol . declarations . length === 1 && symbol . declarations [ 0 ] . kind === SyntaxKind . SourceFile ;
6009
6009
}
6010
6010
6011
- function isNodeParentedBy ( node : Node , parent : Node ) : boolean {
6011
+ function isNodeDescendentOf ( node : Node , ancestor : Node ) : boolean {
6012
6012
while ( node ) {
6013
- if ( node === parent ) return true ;
6013
+ if ( node === ancestor ) return true ;
6014
6014
node = node . parent ;
6015
6015
}
6016
6016
return false ;
6017
6017
}
6018
6018
6019
6019
function isUniqueLocalName ( name : string , container : Node ) : boolean {
6020
- for ( var node = container ; isNodeParentedBy ( node , container ) ; node = node . nextContainer ) {
6020
+ for ( var node = container ; isNodeDescendentOf ( node , container ) ; node = node . nextContainer ) {
6021
6021
if ( node . locals && hasProperty ( node . locals , name ) && node . locals [ name ] . flags & ( SymbolFlags . Value | SymbolFlags . ExportValue ) ) {
6022
6022
return false ;
6023
6023
}
You can’t perform that action at this time.
0 commit comments