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
Added support for record and tuple syntax. #10865
Commits on Mar 16, 2020
-
Added support for record and tuple syntax.
This commit adds support for both the hash #{} and bar {||} syntaxes to babel-parser, as well as adds the supporting babel-plugin-syntax-record-and-tuple plugin to enable support for the syntax. Does not include any transform for records and tuples.
-
-
-
switched to syntaxType option instead of explicit entries for each re…
…cord and tuple type
-
switched to using recordAndTupleSyntaxType for generator options inst…
…ead of adding to node
-
-
-
-
Update packages/babel-parser/src/types.js
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
improved recordAndTuple generator error message, added tests for inva…
…lid,missing options
-
-
-
added better error messages for when the recordAndTuple syntaxType is…
… doesn't match the syntax used
-
-