|
|
@@ -17,10 +17,8 @@
|
|
|
package com.jfinal.template.stat.ast;
|
|
|
|
|
|
import com.jfinal.template.Env;
|
|
|
-import com.jfinal.template.expr.ast.Assign;
|
|
|
import com.jfinal.template.expr.ast.Expr;
|
|
|
import com.jfinal.template.expr.ast.ExprList;
|
|
|
-import com.jfinal.template.expr.ast.IncDec;
|
|
|
import com.jfinal.template.io.Writer;
|
|
|
import com.jfinal.template.stat.Ctrl;
|
|
|
import com.jfinal.template.stat.Location;
|
|
|
@@ -41,11 +39,12 @@ public class SetGlobal extends Stat {
|
|
|
throw new ParseException("The parameter of #setGlobal directive can not be blank", location);
|
|
|
}
|
|
|
|
|
|
+ /* 放开对表达式类型的限定
|
|
|
for (Expr expr : exprList.getExprArray()) {
|
|
|
if ( !(expr instanceof Assign || expr instanceof IncDec) ) {
|
|
|
throw new ParseException("#setGlobal directive only supports assignment expressions", location);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
this.expr = exprList.getActualExpr();
|
|
|
}
|