Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for 5.2 AST bump #1033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ppx/ppx_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ let lwt_expression mapper exp attributes ext_loc =
match exns with
| [] ->
let loc = !default_loc in
[%expr Lwt.bind [%e e] [%e pexp_function ~loc cases]]
[%expr Lwt.bind [%e e] [%e pexp_function_cases ~loc cases]]
| _ ->
let loc = !default_loc in
[%expr Lwt.try_bind (fun () -> [%e e])
[%e pexp_function ~loc cases]
[%e pexp_function ~loc exns]]
[%e pexp_function_cases ~loc cases]
[%e pexp_function_cases ~loc exns]]
in
Some (mapper#expression { new_exp with pexp_attributes })

Expand Down Expand Up @@ -223,7 +223,7 @@ let lwt_expression mapper exp attributes ext_loc =
Lwt.backtrace_catch
(fun exn -> try Lwt.reraise exn with exn -> exn)
(fun () -> [%e expr])
[%e pexp_function ~loc cases]
[%e pexp_function_cases ~loc cases]
]
in
Some (mapper#expression { new_exp with pexp_attributes })
Expand All @@ -248,7 +248,7 @@ let lwt_expression mapper exp attributes ext_loc =
in
let new_exp =
let loc = !default_loc in
[%expr Lwt.bind [%e cond] [%e pexp_function ~loc cases]]
[%expr Lwt.bind [%e cond] [%e pexp_function_cases ~loc cases]]
in
Some (mapper#expression { new_exp with pexp_attributes })

Expand Down
Loading