Skip to content

Commit

Permalink
Merge pull request #84 from ocaml-ppx/ps/rr/refactor__use_ast_buildet…
Browse files Browse the repository at this point in the history
…_to_construct_ast_fragments
  • Loading branch information
tatchi authored Feb 10, 2023
2 parents d6a4439 + a7535cc commit 056ef45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ppx_import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ let type_declaration_expand ~ctxt rec_flag type_decls =
let type_decls =
type_decls |> List.map (type_declaration ~tool_name ~input_name)
in
Ppxlib.{pstr_desc = Pstr_type (rec_flag, type_decls); pstr_loc = loc}
Ppxlib.Ast_builder.Default.(pstr_type ~loc rec_flag type_decls)

let type_declaration_expand_intf ~ctxt rec_flag type_decls =
let loc = Ppxlib.Expansion_context.Extension.extension_point_loc ctxt in
Expand All @@ -581,7 +581,7 @@ let type_declaration_expand_intf ~ctxt rec_flag type_decls =
let type_decls =
type_decls |> List.map (type_declaration ~tool_name ~input_name)
in
Ppxlib.{psig_desc = Psig_type (rec_flag, type_decls); psig_loc = loc}
Ppxlib.Ast_builder.Default.(psig_type ~loc rec_flag type_decls)

let module_declaration_expand ~ctxt package_type =
let tool_name = Ppxlib.Expansion_context.Extension.tool_name ctxt in
Expand Down

0 comments on commit 056ef45

Please sign in to comment.