Revert "Several bug fixes and enhancements on ZenScripts"

This commit is contained in:
Stan Hebben committed 2015-11-30 10:32:26 +01:00
1 parent ad9c98a838
commit 89f22013f1
8 files changed
+8 -24

No files matched your search

@@ -26,10 +26,7 @@ public abstract class Statement {
}
case T_RETURN: {
parser.next();
ParsedExpression expression = null;
if (parser.peek() != null && !parser.isNext(T_SEMICOLON)) {
expression = ParsedExpression.read(parser, environment);
}
ParsedExpression expression = ParsedExpression.read(parser, environment);
parser.required(T_SEMICOLON, "; expected");
return new StatementReturn(next.getPosition(), returnType, expression);
}
@@ -57,6 +57,5 @@ public class StatementForeach extends Statement {
body.compile(local);
iterator.compilePostIterate(localVariables, exit, repeat);
methodOutput.label(exit);
iterator.compileEnd();
}
}