(loc ast.Node, typ *super.TypeArray, bytes scode.Bytes)
| 524 | } |
| 525 | |
| 526 | func arrayToExpr(loc ast.Node, typ *super.TypeArray, bytes scode.Bytes) Expr { |
| 527 | var elems []ArrayElem |
| 528 | inner := super.InnerType(typ) |
| 529 | for it := bytes.Iter(); !it.Done(); { |
| 530 | elems = append(elems, &ExprElem{Node: loc, Expr: valueToExpr(loc, inner, it.Next())}) |
| 531 | } |
| 532 | return &ArrayExpr{ |
| 533 | Node: loc, |
| 534 | Elems: elems, |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | func setToExpr(loc ast.Node, typ *super.TypeSet, bytes scode.Bytes) Expr { |
| 539 | var elems []ArrayElem |
no test coverage detected