MCPcopy
hub / github.com/webpack/webpack / setTopLevelSymbol

Function setTopLevelSymbol

lib/optimize/InnerGraph.js:272–278  ·  view source on GitHub ↗

* @param {ParserState} state parser state * @param {TopLevelSymbol | undefined} symbol the symbol

(state, symbol)

Source from the content-addressed store, hash-verified

270 * @param {TopLevelSymbol | undefined} symbol the symbol
271 */
272 function setTopLevelSymbol(state, symbol) {
273 const innerGraphState = getState(state);
274
275 if (innerGraphState) {
276 innerGraphState.currentTopLevelSymbol = symbol;
277 }
278 }
279
280 /**
281 * @param {ParserState} state parser state

Callers

nothing calls this directly

Calls 1

getStateFunction · 0.70

Tested by

no test coverage detected