@@ -40,8 +40,8 @@ let eval (arg : J.expression) (dispatches : (int * string) list ) : E.t =
4040 E. of_block
4141 [(S. int_switch arg
4242 (Ext_list. map (fun (i ,r ) ->
43- {J. case = i ;
44- body = [S. return_stmt (E. str r)],
43+ {J. switch_case = i ;
44+ switch_body = [S. return_stmt (E. str r)],
4545 false (* FIXME: if true, still print break*)
4646 }) dispatches))]
4747
@@ -58,8 +58,8 @@ let eval_as_event (arg : J.expression) (dispatches : (int * string) list ) =
5858 (E. of_block
5959 [(S. int_switch (E. index arg 0l )
6060 (Ext_list. map (fun (i ,r ) ->
61- {J. case = i ;
62- body = [S. return_stmt (E. str r)],
61+ {J. switch_case = i ;
62+ switch_body = [S. return_stmt (E. str r)],
6363 false (* FIXME: if true, still print break*)
6464 }) dispatches))]
6565 , (* TODO: improve, one dispatch later,
@@ -86,8 +86,8 @@ let eval_as_int (arg : J.expression) (dispatches : (int * int) list ) : E.t =
8686 E. of_block
8787 [(S. int_switch arg
8888 (Ext_list. map (fun (i ,r ) ->
89- {J. case = i ;
90- body = [S. return_stmt (E. int (Int32. of_int r))],
89+ {J. switch_case = i ;
90+ switch_body = [S. return_stmt (E. int (Int32. of_int r))],
9191 false (* FIXME: if true, still print break*)
9292 }) dispatches))]
9393
0 commit comments