mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
bit more cleanup
This commit is contained in:
1 parent
3f52686974
commit
2fcdb0f700
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user