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

Parse class static block #12079

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Sep 18, 2020

Q                       A
Minor: New Feature? Yes
Tests Added + Pass? Yes
License MIT

This PR implements parsing/generating support for the Stage 2 Class Static Block Proposal.

Note that current implementation is aligned to tc39/proposal-class-static-block#15.

/cc @ljharb @rbuckton

@JLHwung JLHwung added PR: New Feature 🚀 A type of pull request used for our changelog categories Spec: Class Static Block labels Sep 18, 2020
@babel-bot
Copy link
Collaborator

babel-bot commented Sep 18, 2020

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 18, 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 e53fdfd:

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

Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

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

👍 outside of a minor question around the error message

@nicolo-ribaudo nicolo-ribaudo added this to the v7.12.0 milestone Sep 30, 2020
@@ -1487,3 +1492,9 @@ export type ParseSubscriptState = {
maybeAsyncArrow: boolean,
stop: boolean,
};

export type ParseClassMemberState = {|
Copy link
Member

Choose a reason for hiding this comment

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

TIL I learned about Flow's exact object types 👍🏼

@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 Oct 1, 2020
@nicolo-ribaudo nicolo-ribaudo changed the base branch from main to feat-7.12.0/class-static-block October 6, 2020 16:42
@nicolo-ribaudo
Copy link
Member

@JLHwung I'm merging this into the feat-7.12.0/class-static-block branch, so that you can properly rebase your other PR.

@nicolo-ribaudo nicolo-ribaudo merged commit c76b519 into babel:feat-7.12.0/class-static-block Oct 6, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the parse-class-static-block branch October 6, 2020 16:42
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Oct 6, 2020
2 tasks
nicolo-ribaudo pushed a commit that referenced this pull request Oct 14, 2020
Co-authored-by: Brian Ng <bng412@gmail.com>
nicolo-ribaudo pushed a commit that referenced this pull request Oct 14, 2020
Co-authored-by: Brian Ng <bng412@gmail.com>
@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 Jan 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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 Spec: Class Static Block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants