()
| 12 | map.set(specifier, list); |
| 13 | }, |
| 14 | format(): string { |
| 15 | const v: string[] = []; |
| 16 | for (const [specifier, names] of map) { |
| 17 | if (names.length === 0) continue; |
| 18 | |
| 19 | v.push(`import { ${names.join(", ")} } from "${specifier}"`); |
| 20 | } |
| 21 | |
| 22 | return v.join("\n"); |
| 23 | }, |
| 24 | }; |
| 25 | } |