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

Open
wants to merge 1 commit into
base: main
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
13 changes: 7 additions & 6 deletions config/cfg_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ let rec apply_config_on_expression (exp : expression) =
let exp = apply_config_on_expression exp in
let cases = apply_config_on_cases cases in
Pexp_match (exp, cases)
| Pexp_fun (arg_label, exp_opt, pat, exp) ->
| Pexp_function (params, constraint_, Pfunction_body exp) ->
let exp = apply_config_on_expression exp in
Pexp_fun (arg_label, exp_opt, pat, exp)
| Pexp_function cases ->
Pexp_function (params, constraint_, Pfunction_body exp)
| Pexp_function (params, constraint_, Pfunction_cases (cases, locs, attrs))
->
let cases = apply_config_on_cases cases in
Pexp_function cases
Pexp_function (params, constraint_, Pfunction_cases (cases, locs, attrs))
| Pexp_let (rec_flag, vbs, exp) ->
let exp = apply_config_on_expression exp in
Pexp_let (rec_flag, vbs, exp)
Expand Down Expand Up @@ -167,8 +168,8 @@ let apply_config_on_module_type mod_type =

let rec apply_config_on_module_expr mod_expr =
match mod_expr.pmod_desc with
| Pmod_apply _ | Pmod_unpack _ | Pmod_extension _ | Pmod_ident _
| Pmod_functor _ ->
| Pmod_apply _ | Pmod_apply_unit _ | Pmod_unpack _ | Pmod_extension _
| Pmod_ident _ | Pmod_functor _ ->
mod_expr
| Pmod_structure structs ->
let new_structs =
Expand Down