MCPcopy
hub / github.com/webpack/webpack / isPure

Method isPure

lib/optimize/InnerGraph.js:75–83  ·  view source on GitHub ↗

* @param {Compilation} compilation compilation * @param {Module} module module * @returns {boolean} if the symbol is pure

(compilation, module)

Source from the content-addressed store, hash-verified

73 * @returns {boolean} if the symbol is pure
74 */
75 isPure(compilation, module) {
76 if (!this.conditional) return this._pure;
77
78 const pureFn =
79 /** @type {(compilation: Compilation, module: Module) => boolean} */ (
80 this.pureFn
81 );
82 return pureFn(compilation, module);
83 }
84}
85
86module.exports.TopLevelSymbol = TopLevelSymbol;

Callers 4

handlerMethod · 0.45
inferDependencyUsageFunction · 0.45

Calls 1

pureFnFunction · 0.85

Tested by

no test coverage detected