Make ArrowFunctionExpression.expression optional#17885
Make ArrowFunctionExpression.expression optional#17885nicolo-ribaudo merged 1 commit intobabel:mainfrom
ArrowFunctionExpression.expression optional#17885Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61220 |
|
I'm not sure how we handle flow types, perhaps keep it optional? |
|
commit: |
I suggest we keep it as-is to align with the current flow parser AST: https://flow.org/try/#1N4Igxg9gdgZglgcxALlAIwIZoKYBsD6uEEAztvhgE6UYCe+JADpdhgCYowa5kA0I2KAFcAtiRQAXSkOz9sADwxgJ+NPTbYuQ3BMnTZA+Y2yU4IwRO4A6SFBIrGVDGM7c+h46fNRLuKxJIGWh8MeT0ZfhYlCStpHzNsFBAMIQkIEQwJODAQfiEyfCEoAGsoCAB3KHw4KrBMsAALfAA3KjgsXGxxZC4eAw1m-GhcWn9aY3wWZlc+-g1mbDqJbDYAWglxxJ63AxJi7AlG2lXhXFwZ9z2Do5PRHEoLgyKwTqp1zce8qChFrpIqY41VqmDA+T4gIo-MB-AGrCCMLLQbirRoYGrgor-GDYVYIA7LSgkVZkCQE7q9dxFfIrVbMdJwMjghSeBIhPwYEhkSgqeEmTIQB7bPoAX34kA0SQAFABKAAEAF4AHyy4DC3IgZomEhwaBJZoABisAGZ9QBWKwARhAwqAA |
JLHwung
left a comment
There was a problem hiding this comment.
Aside: we should also remove method: boolean from ObjectMember.
|
Right, didn't you just mention that the |
|
Oh, I understand what you mean. Will we preserve the |
Yes, we don't plan to drop flow support on Babel 8.
That sounds good to me. We can just remove the manual sync part as long as current logic does not depend on the |
5fc298f to
602170b
Compare
expression from ArrowFunctionExpressionArrowFunctionExpression.expression
ArrowFunctionExpression.expressionArrowFunctionExpression.expression optional
|
Marking this as a bugfix because we already do not generate |

Fixes #1, Fixes #2This property only exists when the flow or estree plugin is enabled.