MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the assertion fails.
(e Expr)
| 1642 | // MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the |
| 1643 | // assertion fails. |
| 1644 | func MustBeDArray(e Expr) *DArray { |
| 1645 | i, ok := AsDArray(e) |
| 1646 | if !ok { |
| 1647 | panic(errors.AssertionFailedf("expected *DArray, found %T", e)) |
| 1648 | } |
| 1649 | return i |
| 1650 | } |
| 1651 | |
| 1652 | // ResolvedType implements the TypedExpr interface. |
| 1653 | func (d *DArray) ResolvedType() *types.T { |