MCPcopy
hub / github.com/webpack/webpack / preWalkForStatement

Method preWalkForStatement

lib/javascript/JavascriptParser.js:2659–2664  ·  view source on GitHub ↗

* Pre walk for statement. * @param {ForStatement} statement for statement

(statement)

Source from the content-addressed store, hash-verified

2657 * @param {ForStatement} statement for statement
2658 */
2659 preWalkForStatement(statement) {
2660 if (statement.init && statement.init.type === "VariableDeclaration") {
2661 this.preWalkStatement(statement.init);
2662 }
2663 this.preWalkStatement(statement.body);
2664 }
2665
2666 /**
2667 * Walk for statement.

Callers 1

preWalkStatementMethod · 0.95

Calls 1

preWalkStatementMethod · 0.95

Tested by

no test coverage detected