-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 -> 52 migration for Pexp_function
Pexp_fun and Pexp_function become Pexp_function, which has a list of argument, a type annotation and a body that can possibly be a list of cases. We need to be careful not to rewrite any chain of Pexp_fun into the new node as that would change the semantics of the program after a roundtrip. A synthetic attribute is used to signal whether or not a chain of Pexp_fun or Pexp_function should be considered the same function or not. We do not need such an attribute for type annotations as that is unlikely to cause problem until the next AST bump. Co-authored-by: Paul-Elliot <[email protected]> Co-authored-by: Jules Aguillon <[email protected]> Signed-off-by: Paul-Elliot <[email protected]> Signed-off-by: Jules Aguillon <[email protected]>
- Loading branch information
Showing
2 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters