فهرست منبع

fixed empty block parsing

Nicolas Cannasse 6 سال پیش
والد
کامیت
c7df796eb1
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      hxsl/MacroParser.hx

+ 2 - 0
hxsl/MacroParser.hx

@@ -242,6 +242,8 @@ class MacroParser {
 			ESwitch(parseExpr(e), [for( c in cases ) { expr : c.expr == null ? { expr : EBlock([]), pos : c.values[0].pos } : parseExpr(c.expr), values : [for( v in c.values ) parseExpr(v)] }], def == null ? null : parseExpr(def));
 		case EWhile(cond, e, normalWhile):
 			EWhile(parseExpr(cond), parseExpr(e), normalWhile);
+		case EObjectDecl([]):
+			EBlock([]);
 		default:
 			null;
 		};