Closed jchavarri closed 3 months ago
Fixes #503.
In the first commit, notice the difference in the ending location of the Pexp_fun with the labelled bar.
Pexp_fun
bar
In 5.1: https://github.com/ocaml-ppx/ppxlib/blob/4661a93e6029f86bd3e0d3fa6d519fe4c658a6dc/test/501_migrations/one_migration.t#L1726
In 5.2: https://github.com/ocaml-ppx/ppxlib/blob/4661a93e6029f86bd3e0d3fa6d519fe4c658a6dc/test/502_migrations/one_migration.t#L719
The second commit updates Migrate_502_501 so that the ranges of locations of Pexp_fun stay consistent with the behavior in 5.1.
Migrate_502_501
Hi @NathanReb thanks for the quick review :)
I applied the following changes:
I also removed the previous location tests.
Please lmk if something like this is what you had in mind.
Fixes #503.
In the first commit, notice the difference in the ending location of the
Pexp_fun
with the labelledbar
.In 5.1: https://github.com/ocaml-ppx/ppxlib/blob/4661a93e6029f86bd3e0d3fa6d519fe4c658a6dc/test/501_migrations/one_migration.t#L1726
In 5.2: https://github.com/ocaml-ppx/ppxlib/blob/4661a93e6029f86bd3e0d3fa6d519fe4c658a6dc/test/502_migrations/one_migration.t#L719
The second commit updates
Migrate_502_501
so that the ranges of locations ofPexp_fun
stay consistent with the behavior in 5.1.