bit more cleanup
This commit is contained in:
parent
3f52686974
commit
2fcdb0f700
1 changed files with 3 additions and 0 deletions
|
@ -6794,6 +6794,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
|
|||
specifier = (declaration as ImportDeclaration|ExportDeclaration).moduleSpecifier;
|
||||
}
|
||||
let moduleSymbol = resolver.getSymbolAtLocation(specifier);
|
||||
if (!moduleSymbol) {
|
||||
return;
|
||||
}
|
||||
let moduleDeclaration = getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
|
||||
if (!moduleDeclaration || isDeclarationFile(moduleDeclaration)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue