()
| 654 | } |
| 655 | |
| 656 | private close(): void { |
| 657 | const { bindings, parent, unresolved } = this.scope |
| 658 | for (const reference of unresolved) { |
| 659 | const binding = bindings[reference.id.name] |
| 660 | if (binding) { |
| 661 | reference.binding = binding |
| 662 | binding.references.push(reference) |
| 663 | } else parent?.unresolved.push(reference) |
| 664 | } |
| 665 | if (parent) return |
| 666 | for (const [name, reference] of this.pendingExports) { |
| 667 | if (reference.binding) { |
| 668 | this.exportsByName[name] = { |
| 669 | kind: "binding", |
| 670 | binding: reference.binding |
| 671 | } |
| 672 | } |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | private functionScope(): Scope { |
| 677 | let scope = this.scope |
no test coverage detected