mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
co-authored by
Mateusz Burzyński
parent
326cb1f094
commit
309a93cb21
@@ -785,10 +785,9 @@ function getContainingModuleSymbol(importer: Importer, checker: TypeChecker): Sy
|
||||
}
|
||||
|
||||
function getSourceFileLikeForImportDeclaration(node: ImporterOrCallExpression): SourceFileLike {
|
||||
if (node.kind === SyntaxKind.CallExpression) {
|
||||
if (node.kind === SyntaxKind.CallExpression || node.kind === SyntaxKind.JSDocImportTag) {
|
||||
return node.getSourceFile();
|
||||
}
|
||||
|
||||
const { parent } = node;
|
||||
if (parent.kind === SyntaxKind.SourceFile) {
|
||||
return parent as SourceFile;
|
||||
|
||||
Reference in New Issue
Block a user