Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@babel/types builder improvements (#14519)
* improve deprecated builders generation * generate builders instead of dynamically doing it * use default parameters in builder function arguments * fix deprecated builders * optimize: use shorthand if applicable * Mark BaseNode properties as optional They are generated by `@babel/parser` but not returned from types builder * chore: improve types * revert cloneNode changes * fix: assign optional value when default is non-null * optimize: skip validateNode when builder keys are empty * fix: set default value of objectTypeAnnotation.indexers/callProperties/internalSlots to [] null has been excluded by validate: arrayOfType * remove unused builder * fix deprecated types builder typings * simplify builders * return validated in validateNode * merge intermediate node declaration * review comments Co-authored-by: Bogdan Savluk <savluk.bogdan@gmail.com>
- Loading branch information
Showing
10 changed files
with
1,452 additions
and
483 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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.