MCPcopy
hub / github.com/webpack/webpack / getParentBlock

Method getParentBlock

lib/ModuleGraph.js:239–241  ·  view source on GitHub ↗

* Returns parent block. * @param {Dependency} dependency the dependency * @returns {DependenciesBlock | undefined} parent block

(dependency)

Source from the content-addressed store, hash-verified

237 * @returns {DependenciesBlock | undefined} parent block
238 */
239 getParentBlock(dependency) {
240 return dependency._parentDependenciesBlock;
241 }
242
243 /**
244 * Gets parent block index.

Callers 7

extractBlockModulesFunction · 0.80
buildMethod · 0.80
getAllReferencedModulesFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected