Skip to content

Commit

Permalink
Use ppxlib.migration namespace and attach loc to ppxlib.effects_syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
  • Loading branch information
NathanReb committed Jan 14, 2025
1 parent f4ba4c1 commit a72b543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion astlib/migrate_502_503.ml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ and copy_pattern_desc :
| Ast_502.Parsetree.Ppat_exception x0 ->
Ast_503.Parsetree.Ppat_exception (copy_pattern x0)
| Ast_502.Parsetree.Ppat_extension
( { txt = "ppxlib.effect_syntax"; _ },
( { txt = "ppxlib.migration.ppat_effect"; _ },
PPat ({ ppat_desc = Ppat_tuple [ e; c ]; _ }, None) ) ->
Ast_503.Parsetree.Ppat_effect (copy_pattern e, copy_pattern c)
| Ast_502.Parsetree.Ppat_extension x0 ->
Expand Down
4 changes: 2 additions & 2 deletions astlib/migrate_503_502.ml
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ and copy_pattern_desc loc :
Ast_502.Parsetree.Ppat_exception (copy_pattern x0)
| Ast_503.Parsetree.Ppat_effect (e, c) ->
Ast_502.Parsetree.Ppat_extension
( Location.{ txt = "ppxlib.effect_syntax"; loc = Location.none },
( Location.{ txt = "ppxlib.migration.ppat_effect"; loc },
Ast_502.Parsetree.PPat
( {
ppat_desc = Ppat_tuple [ copy_pattern e; copy_pattern c ];
ppat_attributes = [];
ppat_loc_stack = [];
ppat_loc = Location.none;
ppat_loc = loc;
},
None ) )
| Ast_503.Parsetree.Ppat_extension x0 ->
Expand Down

0 comments on commit a72b543

Please sign in to comment.