MustBeDString attempts to retrieve a DString from an Expr, panicking if the assertion fails.
(e Expr)
| 1095 | // MustBeDString attempts to retrieve a DString from an Expr, panicking if the |
| 1096 | // assertion fails. |
| 1097 | func MustBeDString(e Expr) DString { |
| 1098 | i, ok := AsDString(e) |
| 1099 | if !ok { |
| 1100 | panic(errors.AssertionFailedf("expected *DString, found %T", e)) |
| 1101 | } |
| 1102 | return i |
| 1103 | } |
| 1104 | |
| 1105 | // ResolvedType implements the TypedExpr interface. |
| 1106 | func (*DString) ResolvedType() *types.T { |
no test coverage detected
searching dependent graphs…