Skip to content

Conversation

Janther
Copy link
Contributor

@Janther Janther commented Sep 2, 2025

prettier's print function on variants executes extra steps preparing the plugin's print function print comments and checking the position of the cursor in regards to the current node.

since we don't to repeat these steps another time when printing a polymorphic node which only delegates the printing to the variant, we simply avoid printing unless there's a comment attached to the polymorphic node.

@Janther Janther requested a review from fvictorio September 2, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant