@@ -2428,7 +2428,7 @@ module ts {
24282428 isMemberCompletion = true ;
24292429
24302430 if ( node . kind === SyntaxKind . Identifier || node . kind === SyntaxKind . QualifiedName || node . kind === SyntaxKind . PropertyAccessExpression ) {
2431- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
2431+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
24322432
24332433 // This is an alias, follow what it aliases
24342434 if ( symbol && symbol . flags & SymbolFlags . Import ) {
@@ -2445,7 +2445,7 @@ module ts {
24452445 }
24462446 }
24472447
2448- var type = typeInfoResolver . getTypeOfNode ( node ) ;
2448+ var type = typeInfoResolver . getTypeOfLocation ( node ) ;
24492449 if ( type ) {
24502450 // Filter private properties
24512451 forEach ( type . getApparentProperties ( ) , symbol => {
@@ -3089,7 +3089,7 @@ module ts {
30893089 displayParts . push ( punctuationPart ( SyntaxKind . CloseParenToken ) ) ;
30903090 }
30913091 else {
3092- var internalAliasSymbol = typeResolver . getSymbolInfo ( importDeclaration . moduleReference ) ;
3092+ var internalAliasSymbol = typeResolver . getSymbolInfoOfLocation ( importDeclaration . moduleReference ) ;
30933093 if ( internalAliasSymbol ) {
30943094 displayParts . push ( spacePart ( ) ) ;
30953095 displayParts . push ( operatorPart ( SyntaxKind . EqualsToken ) ) ;
@@ -3199,7 +3199,7 @@ module ts {
31993199 return undefined ;
32003200 }
32013201
3202- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
3202+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
32033203 if ( ! symbol ) {
32043204 // Try getting just type at this position and show
32053205 switch ( node . kind ) {
@@ -3209,7 +3209,7 @@ module ts {
32093209 case SyntaxKind . ThisKeyword :
32103210 case SyntaxKind . SuperKeyword :
32113211 // For the identifiers/this/super etc get the type at position
3212- var type = typeInfoResolver . getTypeOfNode ( node ) ;
3212+ var type = typeInfoResolver . getTypeOfLocation ( node ) ;
32133213 if ( type ) {
32143214 return {
32153215 kind : ScriptElementKind . unknown ,
@@ -3326,7 +3326,7 @@ module ts {
33263326 return undefined ;
33273327 }
33283328
3329- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
3329+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
33303330
33313331 // Could not find a symbol e.g. node is string or number keyword,
33323332 // or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol
@@ -3958,7 +3958,7 @@ module ts {
39583958 return getReferencesForSuperKeyword ( node ) ;
39593959 }
39603960
3961- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
3961+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
39623962
39633963 // Could not find a symbol e.g. unknown identifier
39643964 if ( ! symbol ) {
@@ -4210,7 +4210,7 @@ module ts {
42104210 return ;
42114211 }
42124212
4213- var referenceSymbol = typeInfoResolver . getSymbolInfo ( referenceLocation ) ;
4213+ var referenceSymbol = typeInfoResolver . getSymbolInfoOfLocation ( referenceLocation ) ;
42144214 if ( referenceSymbol ) {
42154215 var referenceSymbolDeclaration = referenceSymbol . valueDeclaration ;
42164216 var shorthandValueSymbol = typeInfoResolver . getShorthandAssignmentValueSymbol ( referenceSymbolDeclaration ) ;
@@ -4443,7 +4443,7 @@ module ts {
44434443
44444444 function getPropertySymbolFromTypeReference ( typeReference : TypeReferenceNode ) {
44454445 if ( typeReference ) {
4446- var type = typeInfoResolver . getTypeOfNode ( typeReference ) ;
4446+ var type = typeInfoResolver . getTypeOfLocation ( typeReference ) ;
44474447 if ( type ) {
44484448 var propertySymbol = typeInfoResolver . getPropertyOfType ( type , propertyName ) ;
44494449 if ( propertySymbol ) {
@@ -4967,7 +4967,7 @@ module ts {
49674967 // Only walk into nodes that intersect the requested span.
49684968 if ( node && span . intersectsWith ( node . getStart ( ) , node . getWidth ( ) ) ) {
49694969 if ( node . kind === SyntaxKind . Identifier && node . getWidth ( ) > 0 ) {
4970- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
4970+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
49714971 if ( symbol ) {
49724972 var type = classifySymbol ( symbol , getMeaningFromLocation ( node ) ) ;
49734973 if ( type ) {
@@ -5396,7 +5396,7 @@ module ts {
53965396
53975397 // Can only rename an identifier.
53985398 if ( node && node . kind === SyntaxKind . Identifier ) {
5399- var symbol = typeInfoResolver . getSymbolInfo ( node ) ;
5399+ var symbol = typeInfoResolver . getSymbolInfoOfLocation ( node ) ;
54005400
54015401 // Only allow a symbol to be renamed if it actually has at least one declaration.
54025402 if ( symbol && symbol . getDeclarations ( ) && symbol . getDeclarations ( ) . length > 0 ) {
0 commit comments