(entry, importInfo)
| 576 | } |
| 577 | |
| 578 | function resolveGate(entry, importInfo) { |
| 579 | const rawGate = entry.gate || importInfo?.gate || 'always' |
| 580 | if (/^[A-Za-z_$][\w$]*$/.test(rawGate)) { |
| 581 | const referenced = importMap.get(rawGate) |
| 582 | if (referenced?.gate && referenced.gate !== 'always') { |
| 583 | return `${rawGate} => ${referenced.gate}` |
| 584 | } |
| 585 | } |
| 586 | return rawGate |
| 587 | } |
| 588 | |
| 589 | const importMap = new Map([ |
| 590 | ...parseImports(commandsSource), |
no test coverage detected