MCPcopy
hub / github.com/webpack/webpack / generate

Method generate

lib/Generator.js:111–118  ·  view source on GitHub ↗

* Generates generated code for this runtime module. * @abstract * @param {NormalModule} module module for which the code should be generated * @param {GenerateContext} generateContext context for generate * @returns {Source | null} generated code

(
		module,
		{ dependencyTemplates, runtimeTemplate, moduleGraph, type }
	)

Source from the content-addressed store, hash-verified

109 * @returns {Source | null} generated code
110 */
111 generate(
112 module,
113 { dependencyTemplates, runtimeTemplate, moduleGraph, type }
114 ) {
115 const AbstractMethodError = require("./errors/AbstractMethodError");
116
117 throw new AbstractMethodError();
118 }
119
120 /**
121 * Returns the reason this module cannot be concatenated, when one exists.

Callers 3

codeGenerationMethod · 0.45
generateMethod · 0.45
applyMethod · 0.45

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected