(node: ImportExpression)
| 1406 | } |
| 1407 | |
| 1408 | private includeDynamicImport(node: ImportExpression): void { |
| 1409 | const { resolution } = node; |
| 1410 | if (resolution instanceof Module) { |
| 1411 | if (!resolution.includedDynamicImporters.includes(this)) { |
| 1412 | resolution.includedDynamicImporters.push(this); |
| 1413 | // If a module has a top-level await, removing this entry can create |
| 1414 | // deadlocks. |
| 1415 | if (this.astContext.usesTopLevelAwait) { |
| 1416 | resolution.includedTopLevelAwaitingDynamicImporters.add(this); |
| 1417 | } |
| 1418 | } |
| 1419 | } |
| 1420 | } |
| 1421 | |
| 1422 | private includeVariable(variable: Variable, path: ObjectPath, context: InclusionContext): void { |
| 1423 | const { included, module: variableModule } = variable; |
no test coverage detected