MCPcopy
hub / github.com/webpack/webpack / preWalkSwitchCases

Method preWalkSwitchCases

lib/javascript/JavascriptParser.js:3378–3383  ·  view source on GitHub ↗

* Pre walk switch cases. * @param {SwitchCase[]} switchCases switch statement

(switchCases)

Source from the content-addressed store, hash-verified

3376 * @param {SwitchCase[]} switchCases switch statement
3377 */
3378 preWalkSwitchCases(switchCases) {
3379 for (let index = 0, len = switchCases.length; index < len; index++) {
3380 const switchCase = switchCases[index];
3381 this.preWalkStatements(switchCase.consequent);
3382 }
3383 }
3384
3385 /**
3386 * Processes the provided switch case.

Callers 1

Calls 1

preWalkStatementsMethod · 0.95

Tested by

no test coverage detected