MCPcopy
hub / github.com/webpack/webpack / getVariableInfo

Method getVariableInfo

lib/javascript/JavascriptParser.js:5532–5538  ·  view source on GitHub ↗

* Gets variable info. * @param {string} name variable name * @returns {ExportedVariableInfo} info for this variable

(name)

Source from the content-addressed store, hash-verified

5530 * @returns {ExportedVariableInfo} info for this variable
5531 */
5532 getVariableInfo(name) {
5533 const value = this.scope.definitions.get(name);
5534 if (value === undefined) {
5535 return name;
5536 }
5537 return value;
5538 }
5539
5540 /**
5541 * Updates variable using the provided name.

Callers 10

_initializeEvaluatingMethod · 0.95
getVarInfoMethod · 0.95
callHooksForNameMethod · 0.95
applyMethod · 0.80
processCallDefineMethod · 0.80
parseRequireCallFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected