MCPcopy
hub / github.com/webpack/webpack / print

Method print

lib/stats/StatsPrinter.js:197–208  ·  view source on GitHub ↗

* Returns printed result. * @param {string} type The type * @param {PrintObject} object Object to print * @param {StatsPrinterContext=} baseContext The base context * @returns {string | undefined} printed result

(type, object, baseContext)

Source from the content-addressed store, hash-verified

195 * @returns {string | undefined} printed result
196 */
197 print(type, object, baseContext) {
198 if (this._inPrint) {
199 return this._print(type, object, baseContext);
200 }
201 try {
202 this._inPrint = true;
203 return this._print(type, object, baseContext);
204 } finally {
205 this._levelHookCache.clear();
206 this._inPrint = false;
207 }
208 }
209
210 /**
211 * Returns printed result.

Callers 3

_printMethod · 0.95
toStringMethod · 0.80

Calls 2

_printMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected