(loc ast.Node, typ *super.TypeSet, bytes scode.Bytes)
| 536 | } |
| 537 | |
| 538 | func setToExpr(loc ast.Node, typ *super.TypeSet, bytes scode.Bytes) Expr { |
| 539 | var elems []ArrayElem |
| 540 | inner := super.InnerType(typ) |
| 541 | |
| 542 | for it := bytes.Iter(); !it.Done(); { |
| 543 | elems = append(elems, &ExprElem{Node: loc, Expr: valueToExpr(loc, inner, it.Next())}) |
| 544 | } |
| 545 | return &SetExpr{ |
| 546 | Node: loc, |
| 547 | Elems: elems, |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | func unionToExpr(loc ast.Node, typ *super.TypeUnion, bytes scode.Bytes) Expr { |
| 552 | innerType, innerBytes := typ.Untag(bytes) |
no test coverage detected