acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
648 stars 72 forks source link

JSXFragment has properties `openingFragment` and `closingFragment`, not `openingElement` and `closingElement` #85

Closed adrianheine closed 6 years ago

adrianheine commented 6 years ago

I actually overlooked that #84 changed the type of the property value, but not the name of the property. JSXFragments should indeed have properties openingFragment and closingFragment, not openingElement and closingElement, see https://github.com/facebook/jsx/blob/master/AST.md#jsx-fragment.

RReverser commented 6 years ago

Will you send a PR please?

adrianheine commented 6 years ago

Sure! Would you also like to have walk support? I can send a PR for that, too.