-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Flow polymorphic types cannot be parsed #125
Comments
Yeah, I think we should simply use the flow parser since it's more ESTree-compatible than babylon 6. |
babylon 6 can handle all of these though, right? Is it just a version issue? The flow parser is ocaml, so I'm not sure it could be used here. |
There is JS version of the flow parser available: https://www.npmjs.com/package/flow-parser . I'd rather use flow since I know they are trying to stay close to the ESTree spec. |
fixed in 3.0.0 |
I had this:
And it failed to parse so I had to change my children type to
mixed
. I'm guessing this has to do w/ the fact that docgen is using an old version of babylon.The text was updated successfully, but these errors were encountered: