}
}, AST_StatementWithBody);
-var AST_IterationStatement = DEFNODE("Loop", null, {
+var AST_IterationStatement = DEFNODE("IterationStatement", null, {
$documentation: "Internal class. All loops inherit from it."
}, AST_StatementWithBody);
label.references.forEach(function(ref){
if (ref instanceof AST_Continue) {
ref = ref.label.start;
- croak("Continue label `" + label.name + "` refers to non-loop statement.",
+ croak("Continue label `" + label.name + "` refers to non-IterationStatement.",
ref.line, ref.col, ref.pos);
}
});