* Returns key representing the usage. * @param {RuntimeSpec} runtime runtime * @returns {string} key representing the usage
(runtime)
| 728 | * @returns {string} key representing the usage |
| 729 | */ |
| 730 | getUsageKey(runtime) { |
| 731 | /** @type {(string | number)[]} */ |
| 732 | const key = []; |
| 733 | if (this._redirectTo !== undefined) { |
| 734 | key.push(this._redirectTo.getUsageKey(runtime)); |
| 735 | } else { |
| 736 | key.push(this._otherExportsInfo.getUsed(runtime)); |
| 737 | } |
| 738 | key.push(this._sideEffectsOnlyInfo.getUsed(runtime)); |
| 739 | for (const exportInfo of this.orderedOwnedExports) { |
| 740 | key.push(exportInfo.getUsed(runtime)); |
| 741 | } |
| 742 | return key.join("|"); |
| 743 | } |
| 744 | |
| 745 | /** |
| 746 | * Checks whether this exports info is equally used. |
no test coverage detected