Skip to content

compiler: format statements and complete units - #3189

Open
floitsch wants to merge 2 commits into
formatter/03-declarations-calls-collectionsfrom
formatter/04-statements-units
Open

floitsch wants to merge 2 commits into
formatter/03-declarations-calls-collectionsfrom
formatter/04-statements-units

Conversation

@floitsch

@floitsch floitsch commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Part 4 of 10 in the AST-driven Toit pretty-printer stack. Depends on #3188.

Summary

  • format declarations, assignments, returns, loops, conditionals, try/finally, and control flow
  • format imports, exports, fields, methods, classes, and complete source units
  • preserve declaration order and emit one final newline
  • fail explicitly on unsupported AST kinds

This completes the comment-free AST printer before comment ownership is introduced.

Verification

  • statement and unit formatting builds independently
  • complete SDK units are exercised by the corpus gate at the top of the stack

Stack created with GitHub Stacks CLI

@floitsch floitsch changed the title formatter/04 statements units compiler: format statements and complete units Aug 26, 2026
@floitsch
floitsch force-pushed the formatter/04-statements-units branch from 5bd9ae7 to f9d4d17 Compare August 30, 2026 11:08
@floitsch
floitsch force-pushed the formatter/04-statements-units branch from f9d4d17 to 0b36c7b Compare August 30, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant