(loc ast.Node, typ *super.TypeUnion, bytes scode.Bytes)
| 549 | } |
| 550 | |
| 551 | func unionToExpr(loc ast.Node, typ *super.TypeUnion, bytes scode.Bytes) Expr { |
| 552 | innerType, innerBytes := typ.Untag(bytes) |
| 553 | return NewCast(loc, valueToExpr(loc, innerType, innerBytes), typ) |
| 554 | } |
| 555 | |
| 556 | func mapToExpr(loc ast.Node, typ *super.TypeMap, bytes scode.Bytes) Expr { |
| 557 | keyType := super.TypeUnder(typ.KeyType) |
no test coverage detected