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

Flow Enums with unknown members support #12193

Merged
merged 2 commits into from Feb 21, 2021

Conversation

gkz
Copy link
Contributor

@gkz gkz commented Oct 16, 2020

Allows for parsing of Flow Enums with unknown members (as well as printing).

Example:

enum E {
  A,
  B,
  ...
}

This is already supported in Flow Parser: facebook/flow@de2296c

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes? No
License MIT

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 16, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b459a86:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Oct 16, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/41501/

@gkz
Copy link
Contributor Author

gkz commented Oct 16, 2020

The errors in e2e-babel-old-version and e2e-babel do not seem related to my PR.

@nicolo-ribaudo
Copy link
Member

For the failing tests, could you try rebasing?

@existentialism existentialism added PR: New Feature 🚀 A type of pull request used for our changelog categories area: flow labels Oct 16, 2020
@gkz gkz force-pushed the flow-enums-unknown-members branch 2 times, most recently from 11ba364 to ef0e48d Compare October 19, 2020 22:24
@gkz
Copy link
Contributor Author

gkz commented Nov 4, 2020

Does this look OK?

@JLHwung JLHwung added this to the v7.13.0 milestone Nov 4, 2020
@nicolo-ribaudo nicolo-ribaudo added the PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release label Dec 4, 2020
@nicolo-ribaudo nicolo-ribaudo merged commit 5b99b8f into babel:main Feb 21, 2021
This was referenced Mar 14, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 24, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories PR: Ready to be Merged A pull request with already two approvals, but waiting for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants