| 946 | } |
| 947 | |
| 948 | func (t *translator) exprs(in []ast.Expr, inType super.Type) ([]sem.Expr, []super.Type) { |
| 949 | exprs := make([]sem.Expr, 0, len(in)) |
| 950 | types := make([]super.Type, 0, len(in)) |
| 951 | for _, expr := range in { |
| 952 | expr, typ := t.expr(expr, inType) |
| 953 | exprs = append(exprs, expr) |
| 954 | types = append(types, typ) |
| 955 | } |
| 956 | return exprs, types |
| 957 | } |
| 958 | |
| 959 | func (t *translator) assignments(assignments []ast.Assignment, inType super.Type) ([]sem.Assignment, []pathType) { |
| 960 | exprs := make([]sem.Assignment, 0, len(assignments)) |