File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3240,15 +3240,13 @@ namespace ts {
32403240 isMemberCompletion = true ;
32413241 isNewIdentifierLocation = false ;
32423242
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 ) ;
32453245
32463246 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 ) ;
32523250 }
32533251
32543252 //let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration);
You can’t perform that action at this time.
0 commit comments