MCPcopy
hub / github.com/webpack/webpack / setParents

Method setParents

lib/ModuleGraph.js:209–213  ·  view source on GitHub ↗

* Updates parents using the provided dependency. * @param {Dependency} dependency the dependency * @param {DependenciesBlock} block parent block * @param {Module} module parent module * @param {number=} indexInBlock position in block * @returns {void}

(dependency, block, module, indexInBlock = -1)

Source from the content-addressed store, hash-verified

207 * @returns {void}
208 */
209 setParents(dependency, block, module, indexInBlock = -1) {
210 dependency._parentDependenciesBlockIndex = indexInBlock;
211 dependency._parentDependenciesBlock = block;
212 dependency._parentModule = module;
213 }
214
215 /**
216 * Sets parent dependencies block index.

Callers 3

processDependencyMethod · 0.80
addPureDependencyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected