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 #340

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
8 changes: 4 additions & 4 deletions ppx/tyxml_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ let markup_cases ~lang ~modname cases =
let rec markup_function ~lang ~modname e =
let loc = e.pexp_loc in
match e.pexp_desc with
| Pexp_fun (label,def,pat,content) ->
| Pexp_function (params, constraint_, (Pfunction_body content)) ->
let content = markup_function ~lang ~modname content in
{e with pexp_desc = Pexp_fun (label,def,pat,content)}
| Pexp_function cases ->
{e with pexp_desc = Pexp_function (params, constraint_, (Pfunction_body content))}
| Pexp_function (params, constraint_, (Pfunction_cases (cases, loc, attr))) ->
let cases = markup_cases ~lang ~modname cases in
{e with pexp_desc = Pexp_function cases}
{e with pexp_desc = Pexp_function (params, constraint_, (Pfunction_cases (cases, loc, attr)))}
| _ ->
markup_to_expr_with_implementation lang modname loc @@
application_to_list e
Expand Down
Loading