Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding missing ExprList construct

  • Loading branch information...
commit 4070a9c1ec64e3b593250ad272c5ee724be27979 1 parent 6698209
@qmx qmx authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/main/java/org/dynjs/parser/Executor.java
View
13 src/main/java/org/dynjs/parser/Executor.java
@@ -349,8 +349,17 @@ public Statement breakStatement(String id) {
return null;
}
- public Statement exprListStatement(List<Statement> exprList) {
- return null;
+ public Statement exprListStatement(final List<Statement> exprList) {
+ return new Statement() {
+ @Override
+ public CodeBlock getCodeBlock() {
+ return new CodeBlock() {{
+ for (Statement statement : exprList) {
+ append(statement.getCodeBlock());
+ }
+ }};
+ }
+ };
}
public Statement resolveCallExpr(Statement lhs, List<Statement> args) {
Please sign in to comment.
Something went wrong with that request. Please try again.