@@ -2088,7 +2088,7 @@ module ts {
2088
2088
}
2089
2089
2090
2090
// TODO: this is a hack for now, we need a proper walking mechanism to verify that we have the correct node
2091
- var mappedNode = getExactTokenAtPosition ( sourceFile , TypeScript . end ( node ) - 1 , /*includeItemAtEndPosition*/ undefined ) ;
2091
+ var mappedNode = getTokenAtPosition ( sourceFile , TypeScript . end ( node ) - 1 , /*includeItemAtEndPosition*/ undefined ) ;
2092
2092
if ( isPunctuation ( mappedNode . kind ) ) {
2093
2093
mappedNode = mappedNode . parent ;
2094
2094
}
@@ -2325,7 +2325,7 @@ module ts {
2325
2325
2326
2326
fileName = TypeScript . switchToForwardSlashes ( fileName ) ;
2327
2327
var sourceFile = getSourceFile ( fileName ) ;
2328
- var node = getExactTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2328
+ var node = getTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2329
2329
if ( ! node ) {
2330
2330
return undefined ;
2331
2331
}
@@ -2434,7 +2434,7 @@ module ts {
2434
2434
2435
2435
fileName = TypeScript . switchToForwardSlashes ( fileName ) ;
2436
2436
var sourceFile = getSourceFile ( fileName ) ;
2437
- var node = getExactTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2437
+ var node = getTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2438
2438
if ( ! node ) {
2439
2439
return undefined ;
2440
2440
}
@@ -2530,7 +2530,7 @@ module ts {
2530
2530
filename = TypeScript . switchToForwardSlashes ( filename ) ;
2531
2531
var sourceFile = getSourceFile ( filename ) ;
2532
2532
2533
- var node = getExactTokenAtPosition ( sourceFile , position , isValidGotoDefinitionTarget ) ;
2533
+ var node = getTokenAtPosition ( sourceFile , position , isValidGotoDefinitionTarget ) ;
2534
2534
if ( ! node ) {
2535
2535
return undefined ;
2536
2536
}
@@ -2594,7 +2594,7 @@ module ts {
2594
2594
filename = TypeScript . switchToForwardSlashes ( filename ) ;
2595
2595
var sourceFile = getSourceFile ( filename ) ;
2596
2596
2597
- var node = getExactTokenAtPosition ( sourceFile , position , isValidFindOccurencesTarget ) ;
2597
+ var node = getTokenAtPosition ( sourceFile , position , isValidFindOccurencesTarget ) ;
2598
2598
if ( ! node ) {
2599
2599
return undefined ;
2600
2600
}
@@ -2942,7 +2942,7 @@ module ts {
2942
2942
filename = TypeScript . switchToForwardSlashes ( filename ) ;
2943
2943
var sourceFile = getSourceFile ( filename ) ;
2944
2944
2945
- var node = getExactTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2945
+ var node = getTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
2946
2946
if ( ! node ) {
2947
2947
return undefined ;
2948
2948
}
@@ -3125,7 +3125,7 @@ module ts {
3125
3125
forEach ( possiblePositions , position => {
3126
3126
cancellationToken . throwIfCancellationRequested ( ) ;
3127
3127
3128
- var node = getExactTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
3128
+ var node = getTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
3129
3129
if ( ! node || node . getWidth ( ) !== labelName . length ) {
3130
3130
return ;
3131
3131
}
@@ -3181,7 +3181,7 @@ module ts {
3181
3181
forEach ( possiblePositions , position => {
3182
3182
cancellationToken . throwIfCancellationRequested ( ) ;
3183
3183
3184
- var referenceLocation = getExactTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
3184
+ var referenceLocation = getTokenAtPosition ( sourceFile , position , /*includeItemAtEndPosition*/ undefined ) ;
3185
3185
if ( ! isValidReferencePosition ( referenceLocation , searchText ) ) {
3186
3186
return ;
3187
3187
}
@@ -3233,7 +3233,7 @@ module ts {
3233
3233
forEach ( possiblePositions , position => {
3234
3234
cancellationToken . throwIfCancellationRequested ( ) ;
3235
3235
3236
- var node = getExactTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . SuperKeyword ) ;
3236
+ var node = getTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . SuperKeyword ) ;
3237
3237
3238
3238
if ( ! node || node . kind !== SyntaxKind . SuperKeyword ) {
3239
3239
return ;
@@ -3299,7 +3299,7 @@ module ts {
3299
3299
forEach ( possiblePositions , position => {
3300
3300
cancellationToken . throwIfCancellationRequested ( ) ;
3301
3301
3302
- var node = getExactTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . ThisKeyword ) ;
3302
+ var node = getTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . ThisKeyword ) ;
3303
3303
if ( ! node || node . kind !== SyntaxKind . ThisKeyword ) {
3304
3304
return ;
3305
3305
}
@@ -4345,7 +4345,7 @@ module ts {
4345
4345
fileName = TypeScript . switchToForwardSlashes ( fileName ) ;
4346
4346
var sourceFile = getSourceFile ( fileName ) ;
4347
4347
4348
- var node = getExactTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . Identifier ) ;
4348
+ var node = getTokenAtPosition ( sourceFile , position , n => n . kind === SyntaxKind . Identifier ) ;
4349
4349
4350
4350
// Can only rename an identifier.
4351
4351
if ( node && node . kind === SyntaxKind . Identifier ) {
0 commit comments