| | |
| | | const NAMESPACE_OBJECT_EXPORT = "__WEBPACK_NAMESPACE_OBJECT__"; |
| | | |
| | | /** |
| | | * Gets all references. |
| | | * @param {Variable} variable variable |
| | | * @returns {Reference[]} references |
| | | */ |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Returns result. |
| | | * @param {Node | Node[]} ast ast |
| | | * @param {Node} node node |
| | | * @returns {undefined | Node[]} result |
| | |
| | | const nr = /** @type {Range} */ (node.range); |
| | | |
| | | /** |
| | | * Returns result. |
| | | * @param {Node} n node |
| | | * @returns {Node[] | undefined} result |
| | | */ |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Returns found new name. |
| | | * @param {string} oldName old name |
| | | * @param {UsedNames} usedNamed1 used named 1 |
| | | * @param {UsedNames} usedNamed2 used named 2 |
| | |
| | | |
| | | // Remove uncool stuff |
| | | extraInfo = extraInfo.replace( |
| | | /\.+\/|(\/index)?\.([a-zA-Z0-9]{1,4})($|\s|\?)|\s*\+\s*\d+\s*modules/g, |
| | | /\.+\/|(?:\/index)?\.[a-zA-Z0-9]{1,4}(?:$|\s|\?)|\s*\+\s*\d+\s*modules/g, |
| | | "" |
| | | ); |
| | | |
| | |
| | | /** @typedef {Set<Scope>} ScopeSet */ |
| | | |
| | | /** |
| | | * Adds scope symbols. |
| | | * @param {Scope | null} s scope |
| | | * @param {UsedNames} nameSet name set |
| | | * @param {ScopeSet} scopeSet1 scope set 1 |
| | |
| | | ); |
| | | |
| | | /** @typedef {{ usedNames: UsedNames, alreadyCheckedScopes: ScopeSet }} ScopeInfo */ |
| | | /** @typedef {Map<string, ScopeInfo>} UsedNamesInScopeInfo */ |
| | | |
| | | /** |
| | | * @param {Map<string, ScopeInfo>} usedNamesInScopeInfo used names in scope info |
| | | * Gets used names in scope info. |
| | | * @param {UsedNamesInScopeInfo} usedNamesInScopeInfo used names in scope info |
| | | * @param {string} module module identifier |
| | | * @param {string} id export id |
| | | * @returns {ScopeInfo} info |