I'm not an expert at using the visitor pattern so this is currently messy, but it implements nested rsx formatting by recursing using the visitor pattern, placing dummy tokens, expanding those using prettyplease, and then replacing those tokens with the formatted blocks.
All of it feels hacky but we have to work around the fact that prettyplease doesn't expose any of this machinery for us.
I'm not an expert at using the visitor pattern so this is currently messy, but it implements nested rsx formatting by recursing using the visitor pattern, placing dummy tokens, expanding those using prettyplease, and then replacing those tokens with the formatted blocks.
All of it feels hacky but we have to work around the fact that prettyplease doesn't expose any of this machinery for us.
Fix #2205