MCPcopy
hub / github.com/webpack/webpack / getParentModule

Method getParentModule

lib/ModuleGraph.js:230–232  ·  view source on GitHub ↗

* Gets parent module. * @param {Dependency} dependency the dependency * @returns {Module | undefined} parent module

(dependency)

Source from the content-addressed store, hash-verified

228 * @returns {Module | undefined} parent module
229 */
230 getParentModule(dependency) {
231 return dependency._parentModule;
232 }
233
234 /**
235 * Returns parent block.

Callers 15

getConnectionMethod · 0.95
createMethod · 0.80
applyMethod · 0.80
_getRuntimeConditionMethod · 0.80
getImportVarMethod · 0.80
getLinkingErrorsMethod · 0.80
getExportsMethod · 0.80
getReferencedExportsMethod · 0.80
getWarningsMethod · 0.80
updateHashMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected