Skip to content

Integrate comment formatting from formatter into existing AST code#4493

Open
turbolent wants to merge 7 commits into
bastian/janez-formatterfrom
bastian/janez-formatter-refactor
Open

Integrate comment formatting from formatter into existing AST code#4493
turbolent wants to merge 7 commits into
bastian/janez-formatterfrom
bastian/janez-formatter-refactor

Conversation

@turbolent
Copy link
Copy Markdown
Member

⚠️ Depends on #4492

Description

Follow-up to #4492: Avoid the duplication of AST-to-prettier-document conversion functions in the new formatter package, and merge the changes needed for re-adding comments into the existing Doc functions in the ast package.

Also fix several formatting issues that existed in both ast and formatter.


  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@turbolent turbolent requested a review from janezpodhostnik May 20, 2026 19:13
@turbolent turbolent self-assigned this May 20, 2026
@turbolent turbolent requested a review from SupunS as a code owner May 20, 2026 19:13
@turbolent turbolent mentioned this pull request May 20, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant