-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport 5.1.0-beta1 standard parser changes (#2412)
* Backport 5.1.0-beta1 standard parser changes - New `Pmod_apply_unit` module type constructor. - New `value_constraint` field in value bindings. This makes the parser less permissive about bugs in the formatting of type annotation on let-bindings. - Some changes in `Location` and `Ast_mapper` are not necessary but are backported to reduce the diff. - String assignment operator has been removed upstream but remains supported by commenting out the change. * Backport Pmod_apply_unit to extended AST The extended AST already had a similar constructor. This is just a rename. * Backport value_binding change to parser-extended We already had a similar AST node but the `value_constraint` field is new and helps removing complex code in Sugar. The `pvb_is_pun` field is kept from the previous extended representation. * parser-extended: Rename 'let_bindings' to 'value_bindings' For consistency with the new 'value_binding'.
- Loading branch information
Showing
29 changed files
with
626 additions
and
300 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
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
Oops, something went wrong.