MCPcopy
hub / github.com/webpack/webpack / _forEachLevelWaterfall

Method _forEachLevelWaterfall

lib/stats/StatsFactory.js:201–206  ·  view source on GitHub ↗

* For each level waterfall. * @template {StatsFactoryHooks[keyof StatsFactoryHooks]} HM * @template {HM extends HookMap<infer H> ? H : never} H * @template [D=EXPECTED_ANY] * @param {HM} hookMap hook map * @param {Caches<H>} cache cache * @param {string} type type * @param {D} data dat

(hookMap, cache, type, data, fn)

Source from the content-addressed store, hash-verified

199 * @private
200 */
201 _forEachLevelWaterfall(hookMap, cache, type, data, fn) {
202 for (const hook of this._getAllLevelHooks(hookMap, cache, type)) {
203 data = fn(/** @type {H} */ (hook), data);
204 }
205 return data;
206 }
207
208 /**
209 * For each level filter.

Callers 1

_createMethod · 0.95

Calls 2

_getAllLevelHooksMethod · 0.95
fnFunction · 0.50

Tested by

no test coverage detected