MCPcopy
hub / github.com/webpack/webpack / preWalkStatements

Method preWalkStatements

lib/javascript/JavascriptParser.js:2154–2159  ·  view source on GitHub ↗

* Pre walking iterates the scope for variable declarations * @param {(Statement | ModuleDeclaration)[]} statements statements

(statements)

Source from the content-addressed store, hash-verified

2152 * @param {(Statement | ModuleDeclaration)[]} statements statements
2153 */
2154 preWalkStatements(statements) {
2155 for (let index = 0, len = statements.length; index < len; index++) {
2156 const statement = statements[index];
2157 this.preWalkStatement(statement);
2158 }
2159 }
2160
2161 /**
2162 * Block pre walking iterates the scope for block variable declarations

Callers 3

preWalkBlockStatementMethod · 0.95
preWalkSwitchCasesMethod · 0.95
parseMethod · 0.95

Calls 1

preWalkStatementMethod · 0.95

Tested by

no test coverage detected