Skip to content
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

Explicit long identifiers on parser #1739

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Explicit long identifiers on parser #1739

wants to merge 8 commits into from

Conversation

haskellcamargo
Copy link

According to a TODO comment on parser, in order to achieve best maintainability, All open declarations should be removed one by one.
I've removed all except Migrate_parsetree.OCaml_404.Ast, which seems a lot more complex than others and will be in another PR.
I've specified long identifiers for the expressions OCaml wasn't able to find explicity, thus fixing all these compilation issues. make build is working and all tests via make test are passing. I've also replaced the TODO by the next task.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Member

@jordwalke jordwalke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this helps me navigate the code much better. Would you see my comments?

..
end

parse_tree.mli
--------------
and core_type = {
ptyp_desc: core_type_desc;
ptyp_loc: Location.t;
Parsetree.ptyp_desc: core_type_desc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need to do this on one of the record labels. I notice you've done it twice in several cases.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to make sure you just do it at most once per record? (It will help reduce merge conflicts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants