(elems []ast.ArrayElem)
| 313 | } |
| 314 | |
| 315 | func (c *canon) arrayElems(elems []ast.ArrayElem) { |
| 316 | for k, elem := range elems { |
| 317 | if k > 0 { |
| 318 | c.write(",") |
| 319 | } |
| 320 | switch elem := elem.(type) { |
| 321 | case *ast.SpreadElem: |
| 322 | c.write("...") |
| 323 | c.expr(elem.Expr, "") |
| 324 | case *ast.ExprElem: |
| 325 | c.expr(elem.Expr, "") |
| 326 | } |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | func (c *canon) binary(e *ast.BinaryExpr, parent string) { |
| 331 | switch e.Op { |