File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3240,15 +3240,13 @@ namespace ts {
3240
3240
isMemberCompletion = true ;
3241
3241
isNewIdentifierLocation = false ;
3242
3242
3243
- let importDeclaration = < ImportDeclaration > getAncestor ( contextToken , SyntaxKind . ImportDeclaration ) ;
3244
- Debug . assert ( importDeclaration !== undefined ) ;
3243
+ let importDeclaration = < ImportDeclaration > importClause . parent ;
3244
+ Debug . assert ( importDeclaration !== undefined && importDeclaration . kind === SyntaxKind . ImportDeclaration ) ;
3245
3245
3246
3246
let exports : Symbol [ ] ;
3247
- if ( importDeclaration . moduleSpecifier ) {
3248
- let moduleSpecifierSymbol = typeChecker . getSymbolAtLocation ( importDeclaration . moduleSpecifier ) ;
3249
- if ( moduleSpecifierSymbol ) {
3250
- exports = typeChecker . getExportsOfModule ( moduleSpecifierSymbol ) ;
3251
- }
3247
+ let moduleSpecifierSymbol = typeChecker . getSymbolAtLocation ( importDeclaration . moduleSpecifier ) ;
3248
+ if ( moduleSpecifierSymbol ) {
3249
+ exports = typeChecker . getExportsOfModule ( moduleSpecifierSymbol ) ;
3252
3250
}
3253
3251
3254
3252
//let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration);
You can’t perform that action at this time.
0 commit comments