MCPcopy
hub / github.com/webpack/webpack / _getModuleGraphModule

Method _getModuleGraphModule

lib/ModuleGraph.js:192–199  ·  lib/ModuleGraph.js::ModuleGraph._getModuleGraphModule

* Get module graph module. * @param {Module} module the module * @returns {ModuleGraphModule} the internal module

(module)

Source from the content-addressed store, hash-verified

190 * @returns {ModuleGraphModule} the internal module
191 */
192 _getModuleGraphModule(module) {
193 let mgm = this._moduleMap.get(module);
194 if (mgm === undefined) {
195 mgm = new ModuleGraphModule();
196 this._moduleMap.set(module, mgm);
197 }
198 return mgm;
199 }
200
201 /**
202 * Updates parents using the provided dependency.

Callers 15

setResolvedModuleMethod · 0.95
updateModuleMethod · 0.95
removeConnectionMethod · 0.95
cloneModuleAttributesMethod · 0.95
moveModuleConnectionsMethod · 0.95
addExtraReasonMethod · 0.95
getConnectionMethod · 0.95

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected