|
@@ -763,6 +763,8 @@ and gen_block_element ?(after=false) ctx e =
|
|
| _ -> assert false)
|
|
| _ -> assert false)
|
|
| TFunction _ ->
|
|
| TFunction _ ->
|
|
gen_block_element ~after ctx (mk (TParenthesis e) e.etype e.epos)
|
|
gen_block_element ~after ctx (mk (TParenthesis e) e.etype e.epos)
|
|
|
|
+ | TObjectDecl fl ->
|
|
|
|
+ List.iter (fun (_,e) -> gen_block_element ~after ctx e) fl
|
|
| _ ->
|
|
| _ ->
|
|
if not after then newline ctx;
|
|
if not after then newline ctx;
|
|
gen_expr ctx e;
|
|
gen_expr ctx e;
|