MCPcopy
hub / github.com/webpack/webpack / preWalkForOfStatement

Method preWalkForOfStatement

lib/javascript/JavascriptParser.js:2746–2754  ·  view source on GitHub ↗

* Pre walk for of statement. * @param {ForOfStatement} statement statement

(statement)

Source from the content-addressed store, hash-verified

2744 * @param {ForOfStatement} statement statement
2745 */
2746 preWalkForOfStatement(statement) {
2747 if (statement.await && this.scope.topLevelScope === true) {
2748 this.hooks.topLevelAwait.call(statement);
2749 }
2750 if (statement.left.type === "VariableDeclaration") {
2751 this.preWalkVariableDeclaration(statement.left);
2752 }
2753 this.preWalkStatement(statement.body);
2754 }
2755
2756 /**
2757 * Walk for of statement.

Callers 1

preWalkStatementMethod · 0.95

Calls 3

preWalkStatementMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected