* Sets pre order index if unset. * @param {Module} module the module * @param {number} index the index of the module * @returns {boolean} true, if the index was set
(module, index)
| 824 | * @returns {boolean} true, if the index was set |
| 825 | */ |
| 826 | setPreOrderIndexIfUnset(module, index) { |
| 827 | const mgm = this._getModuleGraphModule(module); |
| 828 | if (mgm.preOrderIndex === null) { |
| 829 | mgm.preOrderIndex = index; |
| 830 | return true; |
| 831 | } |
| 832 | return false; |
| 833 | } |
| 834 | |
| 835 | /** |
| 836 | * Sets post order index. |
no test coverage detected