MCPcopy
hub / github.com/webpack/webpack / getTopLevelSymbol

Function getTopLevelSymbol

lib/optimize/InnerGraph.js:260–266  ·  view source on GitHub ↗

* @param {ParserState} state parser state * @returns {TopLevelSymbol | void} usage data

(state)

Source from the content-addressed store, hash-verified

258 * @returns {TopLevelSymbol | void} usage data
259 */
260 function getTopLevelSymbol(state) {
261 const innerGraphState = getState(state);
262
263 if (innerGraphState) {
264 return innerGraphState.currentTopLevelSymbol;
265 }
266 }
267
268 /**
269 * @param {ParserState} state parser state

Callers

nothing calls this directly

Calls 1

getStateFunction · 0.70

Tested by

no test coverage detected