Skip to content

removing undefined from AstPath<PrintableNode | undefined>#1512

Open
Janther wants to merge 1 commit intomainfrom
get-visitor-keys
Open

removing undefined from AstPath<PrintableNode | undefined>#1512
Janther wants to merge 1 commit intomainfrom
get-visitor-keys

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Apr 13, 2026

since it's not required with our current print strategy.

as a bonus I added getVisitorKeys to minimise the visits to nodes prettier will make during their process. (there is a small bump in the speed of our tests)

Also @fvictorio what's your input on prettier/prettier#19041 (comment)? I'm inclined in keeping our printing approach as is and only address it if in a future version, prettier decides to do something different when passing undefined like throwing.

@Janther Janther requested a review from fvictorio April 13, 2026 02:33
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