MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the assertion fails.
(e Expr)
| 3324 | // MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the |
| 3325 | // assertion fails. |
| 3326 | func MustBeDArray(e Expr) *DArray { |
| 3327 | i, ok := AsDArray(e) |
| 3328 | if !ok { |
| 3329 | panic(errors.AssertionFailedf("expected *DArray, found %T", e)) |
| 3330 | } |
| 3331 | return i |
| 3332 | } |
| 3333 | |
| 3334 | // ResolvedType implements the TypedExpr interface. |
| 3335 | func (d *DArray) ResolvedType() *types.T { |
no test coverage detected
searching dependent graphs…