MCPcopy
hub / github.com/webpack/webpack / undefineVariable

Method undefineVariable

lib/javascript/JavascriptParser.js:5509–5511  ·  view source on GitHub ↗

* Processes the provided name. * @param {string} name variable name

(name)

Source from the content-addressed store, hash-verified

5507 * @param {string} name variable name
5508 */
5509 undefineVariable(name) {
5510 this.scope.definitions.delete(name);
5511 }
5512
5513 /**
5514 * Checks whether this javascript parser is variable defined.

Callers 3

inScopeMethod · 0.95
inClassScopeMethod · 0.95
inFunctionScopeMethod · 0.95

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected