( node: Node, module: SourceModule, seen = new Set<Binding>() )
| 2481 | } |
| 2482 | |
| 2483 | private isNodeNonExtensible( |
| 2484 | node: Node, |
| 2485 | module: SourceModule, |
| 2486 | seen = new Set<Binding>() |
| 2487 | ): boolean { |
| 2488 | const unwrapped = unwrapChain(node) |
| 2489 | if (this.isNonExtensibleCall(unwrapped, module)) return true |
| 2490 | if (unwrapped.type === "Identifier") { |
| 2491 | const binding = module.scopes.byId.get(unwrapped)?.binding |
| 2492 | if (binding) return this.isBindingNonExtensible(binding, module, seen) |
| 2493 | } |
| 2494 | return false |
| 2495 | } |
| 2496 | |
| 2497 | private isExportNonExtensible(target: ImportTarget): boolean { |
| 2498 | if (target.kind === "binding") |
no test coverage detected