MCPcopy
hub / github.com/webpack/webpack / getLogStatusState

Function getLogStatusState

lib/node/nodeConsole.js:37–48  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

35 * @returns {StatusMessageState} status state
36 */
37const getLogStatusState = (compiler) => {
38 let state = logStatusStateByCompiler.get(compiler);
39 if (state === undefined) {
40 state = {
41 currentMessage: undefined,
42 currentLines: 0
43 };
44 logStatusStateByCompiler.set(compiler, state);
45 logStatusStates.add(state);
46 }
47 return state;
48};
49
50/* eslint-disable no-console */
51

Callers 1

nodeConsole.jsFile · 0.85

Calls 3

getMethod · 0.45
setMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected