function next_index(i) {
for (var j = i + 1, len = statements.length; j < len; j++) {
var stat = statements[j];
- if (!(stat instanceof AST_Definitions && declarations_only(stat))) {
+ if (!(stat instanceof AST_Var && declarations_only(stat))) {
break;
}
}
function prev_index(i) {
for (var j = i; --j >= 0;) {
var stat = statements[j];
- if (!(stat instanceof AST_Definitions && declarations_only(stat))) {
+ if (!(stat instanceof AST_Var && declarations_only(stat))) {
break;
}
}