Visit the children of an import type/require call/dynamic import when looking for those (#24663)

This commit is contained in:
Wesley Wigham
2018-06-04 14:31:56 -07:00
committed by GitHub
parent cbbf2e4e6f
commit 7eaa78846e
5 changed files with 74 additions and 5 deletions

View File

@@ -1819,11 +1819,9 @@ namespace ts {
else if (isLiteralImportTypeNode(node)) {
imports = append(imports, node.argument.literal);
}
else {
collectDynamicImportOrRequireCallsForEachChild(node);
if (hasJSDocNodes(node)) {
forEach(node.jsDoc, collectDynamicImportOrRequireCallsForEachChild);
}
collectDynamicImportOrRequireCallsForEachChild(node);
if (hasJSDocNodes(node)) {
forEach(node.jsDoc, collectDynamicImportOrRequireCallsForEachChild);
}
}