소스 검색

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;
 		};