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

Improve AST node definitions in @babel/types #12510

Merged
merged 4 commits into from Dec 15, 2020

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Dec 15, 2020

Q                       A
License MIT

After adding node argument type annotations for @babel/generator (in #12487) found some incomplete or not correct AST node definitions - extracted it into separate PR

@babel-bot
Copy link
Collaborator

babel-bot commented Dec 15, 2020

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 15, 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 06cdbb7:

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

@@ -1542,6 +1544,7 @@ export interface ClassPrivateProperty extends BaseNode {
value: Expression | null;
decorators: Array<Decorator> | null;
static: any;
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

typeAnnotation is an optional property: Babel does not assign it to AST unless flow or typescript plugin are enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added the same definition as in ClassProperty

@nicolo-ribaudo
Copy link
Member

Could you rebase and re-build the generated type definitions?

@nicolo-ribaudo nicolo-ribaudo added pkg: types PR: Internal 🏠 A type of pull request used for our changelog categories labels Dec 15, 2020
@zxbodya
Copy link
Contributor Author

zxbodya commented Dec 15, 2020

Could you rebase and re-build the generated type definitions?

yes, will do

Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Thanks!

@nicolo-ribaudo nicolo-ribaudo merged commit 2f6de2f into babel:main Dec 15, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the ts-migration/babel-types branch December 15, 2020 22:49
@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 Mar 17, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 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 pkg: types PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants