* Sets all known exports used. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, when something changed
(runtime)
| 524 | * @returns {boolean} true, when something changed |
| 525 | */ |
| 526 | setAllKnownExportsUsed(runtime) { |
| 527 | let changed = false; |
| 528 | for (const exportInfo of this._exports.values()) { |
| 529 | if (!exportInfo.provided) continue; |
| 530 | if (exportInfo.setUsed(UsageState.Used, runtime)) { |
| 531 | changed = true; |
| 532 | } |
| 533 | } |
| 534 | return changed; |
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Sets used for side effects only. |
no test coverage detected