-
Notifications
You must be signed in to change notification settings - Fork 198
ppx: upgrade to ppxlib 0.36 #1866
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
ppx: upgrade to ppxlib 0.36 #1866
Conversation
99efd3f to
ea844f1
Compare
hhugo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocked until the CI goes green
| | { pparam_desc = Pparam_val (label, _, _arg); _ } -> | ||
| Some (Arg.make ~label ())) | ||
| in | ||
| params @ create_meth_ty body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we need to recurse here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hhugo the reason why I added recursion was for cases like this:
class x =
object
method foo a = fun b -> a + b
enddue to ocaml/ocaml#12236 preserving both Pexp_function nodes in the AST. I'm not very familiar with how JSOO handles this case, so I trust you to know whether it's unnecessary.
| | Pexp_function (params, _, Pfunction_body body) -> | ||
| let params = | ||
| List.filter_map params ~f:(function | ||
| | { pparam_desc = Pparam_newtype _; _ } -> None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that this is what we want. I'll have to look futher
6fb1a5d to
3f4d8a2
Compare
3f4d8a2 to
afbfc00
Compare
|
jsoo can now build with ppxlib.0.36. Running tests still requires ppxlib < 0.36 |
|
Tests now run with ppxlib.0.36 |
ppx_expectand its transitive deps need to be upgraded first before this change can be considered, but I'm opening this up to unblock some of my PRs in other repos (this builds fine if you don't run the tests)