visitBlock method
Implementation
@override
visitBlock(BlockStatement node) {
dynamic rtn;
// Hoist function declarations in this block before executing statements.
for (Statement stmt in node.body) {
if (stmt is FunctionDeclaration && stmt.function.name != null) {
addToThisContext(stmt.function.name!, visitFunctionNode(stmt.function));
}
}
for (Node stmt in node.body) {
rtn = stmt.visitBy(this);
}
return rtn;
}