-
Notifications
You must be signed in to change notification settings - Fork 197
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
Support for new babel types #132
Comments
Have time to submit a pull request? |
I'm guessing @tmcw doesn't have time for a pull request, which is totally fine. I'll do this as soon as I can. |
Shouldn't be too bad. I can do it later if you don't - From the changelog Rename RegexLiteral node to RegExpLiteral. The MethodDefinition node type has been renamed to ClassMethod and it's FunctionExpression value property has been coerced into the main method node. |
Those are all really worthwhile changes, by the way. |
Should probably propose them to ESTree anyway (lgtm) |
I think this is going to be difficult w/o #57. For example: attempting to add RegExpLiteral per the spec, I added the following definition: def("RegExpLiteral")
.bases("Literal")
.build("pattern", "flags")
.field("pattern", String)
.field("flags", String); Trying to build a b.regExpLiteral("my-pattern", "ig");
This is because Until |
Update: I made #162 |
Re: babel/babel#2769
Babel 6.0.0 introduces a new NumericLiteral type that currently is not present in ast-types and breaks the tree traversal.
The text was updated successfully, but these errors were encountered: