Skip to content

Commit 48bb279

Browse files
committed
juledoc: update to latest AST
1 parent dc6a077 commit 48bb279

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/formatter.jule

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ impl exprFormatter {
13741374
}
13751375

13761376
fn selector(&self, mut si: &ast::SelectorExpr) {
1377-
self.format(si.Expr)
1377+
self.format(si.X)
13781378
self.write(".")
13791379
if self.fmt.row != si.Name.Row {
13801380
self.fmt.addIndent()
@@ -1410,7 +1410,7 @@ impl exprFormatter {
14101410
// println("error handling...")
14111411
// }
14121412
sie, _ := f.Func.Data.(&ast::SelectorExpr)
1413-
if sie != nil && sie.Expr.Token.Row != sie.Name.Row {
1413+
if sie != nil && sie.X.Token.Row != sie.Name.Row {
14141414
self.fmt.addIndent()
14151415
defer { self.fmt.doneIndent() }
14161416
}
@@ -1581,7 +1581,7 @@ impl exprFormatter {
15811581
self.binary(kind.(&ast::BinaryExpr))
15821582
| &ast::CallExpr:
15831583
self.call(kind.(&ast::CallExpr))
1584-
| &ast::KeyValueExpr | &ast::FieldExprPair:
1584+
| &ast::KeyValueExpr:
15851585
self.write("{...:...}")
15861586
| &ast::TypedBraceLit:
15871587
mut lit := kind.(&ast::TypedBraceLit)

0 commit comments

Comments
 (0)