Skip to content

Commit

Permalink
501<->500 migration: review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <[email protected]>
  • Loading branch information
panglesd committed Sep 19, 2023
1 parent d3517c5 commit baa3e81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions astlib/migrate_501_500.ml
Original file line number Diff line number Diff line change
Expand Up @@ -792,15 +792,16 @@ and copy_module_expr_desc loc :
let x1 =
match x1.pmod_desc with
| Pmod_structure [] ->
let loc = { x1.pmod_loc with loc_ghost = true } in
let pmod_attributes =
{
Ast_500.Parsetree.attr_name =
{
txt = "ppxlib.migration.keep_structure";
loc = { x1.pmod_loc with loc_ghost = true };
loc;
};
attr_payload = Ast_500.Parsetree.PStr [];
attr_loc = Location.none;
attr_loc = loc;
}
:: x1.pmod_attributes
in
Expand Down

0 comments on commit baa3e81

Please sign in to comment.