|
@@ -72,29 +72,29 @@ iter(econst, fail);
|
|
|
iter(econtinue, fail);
|
|
|
iter(ebreak, fail);
|
|
|
iter(efield, seq.bind("EConst(CString(foo,DoubleQuotes))"));
|
|
|
-iter(eparenthesis, seq.bind("EConst(CInt(1))"));
|
|
|
-iter(euntyped, seq.bind("EConst(CInt(1))"));
|
|
|
-iter(ethrow, seq.bind("EConst(CInt(1))"));
|
|
|
-iter(eunop, seq.bind("EConst(CInt(1))"));
|
|
|
-iter(ecast, seq.bind("EConst(CInt(1))"));
|
|
|
-iter(emeta, seq.bind("EConst(CInt(1))"));
|
|
|
-check(earray, ["EConst(CInt(1))", "EConst(CInt(0))"]);
|
|
|
-check(ewhile1, ["EConst(CInt(1))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
-check(ewhile2, ["EConst(CInt(1))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
-check(ebinop, ["EConst(CInt(1))", "EConst(CInt(1))"]);
|
|
|
-check(efor, ["EConst(CInt(1))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
-check(ein, ["EConst(CIdent(i))", "EConst(CInt(1))"]);
|
|
|
-check(evars, ["EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(etry, ["EConst(CInt(1))", "EConst(CString(foo,DoubleQuotes))", "EConst(CString(bar,DoubleQuotes))"]);
|
|
|
-check(eternary, ["EConst(CInt(1))", "EConst(CInt(2))", "EConst(CInt(3))"]);
|
|
|
-check(earraydecl, ["EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(enew, ["EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(eblock, ["EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(eobjectdecl, ["EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(ecall, ["EConst(CIdent(foo))", "EConst(CInt(1))", "EConst(CInt(2))"]);
|
|
|
-check(ereturn, ["EConst(CInt(1))"]);
|
|
|
-check(efunction, ["EConst(CInt(1))", "EConst(CInt(2))", "EConst(CInt(3))"]);
|
|
|
-check(eswitch, ["EConst(CInt(1))", "EConst(CInt(2))", "EConst(CInt(3))", "EConst(CInt(4))", "EConst(CInt(5))", "EConst(CInt(6))"]);
|
|
|
+iter(eparenthesis, seq.bind("EConst(CInt(1,null))"));
|
|
|
+iter(euntyped, seq.bind("EConst(CInt(1,null))"));
|
|
|
+iter(ethrow, seq.bind("EConst(CInt(1,null))"));
|
|
|
+iter(eunop, seq.bind("EConst(CInt(1,null))"));
|
|
|
+iter(ecast, seq.bind("EConst(CInt(1,null))"));
|
|
|
+iter(emeta, seq.bind("EConst(CInt(1,null))"));
|
|
|
+check(earray, ["EConst(CInt(1,null))", "EConst(CInt(0,null))"]);
|
|
|
+check(ewhile1, ["EConst(CInt(1,null))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
+check(ewhile2, ["EConst(CInt(1,null))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
+check(ebinop, ["EConst(CInt(1,null))", "EConst(CInt(1,null))"]);
|
|
|
+check(efor, ["EConst(CInt(1,null))", "EConst(CString(foo,DoubleQuotes))"]);
|
|
|
+check(ein, ["EConst(CIdent(i))", "EConst(CInt(1,null))"]);
|
|
|
+check(evars, ["EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(etry, ["EConst(CInt(1,null))", "EConst(CString(foo,DoubleQuotes))", "EConst(CString(bar,DoubleQuotes))"]);
|
|
|
+check(eternary, ["EConst(CInt(1,null))", "EConst(CInt(2,null))", "EConst(CInt(3,null))"]);
|
|
|
+check(earraydecl, ["EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(enew, ["EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(eblock, ["EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(eobjectdecl, ["EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(ecall, ["EConst(CIdent(foo))", "EConst(CInt(1,null))", "EConst(CInt(2,null))"]);
|
|
|
+check(ereturn, ["EConst(CInt(1,null))"]);
|
|
|
+check(efunction, ["EConst(CInt(1,null))", "EConst(CInt(2,null))", "EConst(CInt(3,null))"]);
|
|
|
+check(eswitch, ["EConst(CInt(1,null))", "EConst(CInt(2,null))", "EConst(CInt(3,null))", "EConst(CInt(4,null))", "EConst(CInt(5,null))", "EConst(CInt(6,null))"]);
|
|
|
|
|
|
// map
|
|
|
function wrap(e) return macro ($e);
|