(call: Call, module: SourceModule)
| 516 | } |
| 517 | |
| 518 | const isHeldCall = (call: Call, module: SourceModule): boolean => { |
| 519 | const binding = |
| 520 | call.callee.type === "Identifier" ? |
| 521 | module.scopes.root.bindings[call.callee.name] |
| 522 | : undefined |
| 523 | const statement = binding?.kind === "import" && binding.declaration.parent |
| 524 | return ( |
| 525 | !!statement && |
| 526 | statement.type === "ImportDeclaration" && |
| 527 | statement.source.value === heldSpecifier |
| 528 | ) |
| 529 | } |
| 530 | |
| 531 | const keptCallsIn = (module: SourceModule, kept: KeptCode) => { |
| 532 | const result: { |