}
}, AST_Statement);
+var AST_StatementWithBody = DEFNODE("StatementWithBody", null, {
+}, AST_Statement);
+
var AST_DWLoop = DEFNODE("DWLoop", "condition", {
$documentation: "Base class for do/while statements.",
_walk: function(visitor) {
this.body._walk(visitor);
});
}
-}, AST_Statement);
+}, AST_StatementWithBody);
var AST_Do = DEFNODE("Do", null, {
$documentation: "A `do` statement"
this.body._walk(visitor);
});
}
-}, AST_Statement);
+}, AST_StatementWithBody);
var AST_ForIn = DEFNODE("ForIn", "init name object", {
$documentation: "A `for ... in` statement",
this.body._walk(visitor);
});
}
-}, AST_Statement);
+}, AST_StatementWithBody);
var AST_With = DEFNODE("With", "expression", {
$documentation: "A `with` statement",
this.body._walk(visitor);
});
}
-}, AST_Statement);
+}, AST_StatementWithBody);
/* -----[ scope and functions ]----- */