(n node.Node)
| 1301 | } |
| 1302 | |
| 1303 | func (p *Printer) printExprArrayItem(n node.Node) { |
| 1304 | nn := n.(*expr.ArrayItem) |
| 1305 | p.printFreeFloating(nn, freefloating.Start) |
| 1306 | |
| 1307 | if nn.Unpack { |
| 1308 | io.WriteString(p.w, "...") |
| 1309 | } |
| 1310 | |
| 1311 | if nn.Key != nil { |
| 1312 | p.Print(nn.Key) |
| 1313 | p.printFreeFloating(nn, freefloating.Expr) |
| 1314 | io.WriteString(p.w, "=>") |
| 1315 | } |
| 1316 | |
| 1317 | p.Print(nn.Val) |
| 1318 | |
| 1319 | p.printFreeFloating(nn, freefloating.End) |
| 1320 | } |
| 1321 | |
| 1322 | func (p *Printer) printExprArray(n node.Node) { |
| 1323 | nn := n.(*expr.Array) |
no test coverage detected