Commits
Click on a commit to change the comparison rangerefactor(ast)!: remove `JSXOpeningElement::self_closing` field (#10275)
Remove `self_closing` field from `JSXOpeningElement`. Whether the tag is self-closing can be determined by whether the `JSXElement` has a `closing_element` or not.
This is advantageous for 2 reasons:
1. Reduce size of `JSXOpeningElement` by 8 bytes.
2. Make it impossible for `self_closing` and `closing_element` fields to get out of sync. Only one source of truth.10 months ago
by overlookmotel