Skip to content

Commit

Permalink
juledoc: update to latest ast and improve types brace literal formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 21, 2025
1 parent 110b932 commit 3f7ee58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builder/formatter.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,11 @@ impl exprFormatter {
self.fnCall((&ast::FuncCallExpr)(kind))
| &ast::KeyValPair | &ast::FieldExprPair:
self.write("{...:...}")
| &ast::BraceLit | &ast::StructLit:
| &ast::TypedBraceLit:
mut lit := (&ast::TypedBraceLit)(kind)
self.fmt.formatType(lit.Kind)
fall
| &ast::BraceLit:
self.write("{ ... }")
| &ast::SliceExpr:
self.write("[ ... ]")
Expand Down

0 comments on commit 3f7ee58

Please sign in to comment.