MustBeDStringOrDNull attempts to retrieve a DString or DNull from an Expr, panicking if the assertion fails.
(e Expr)
| 1228 | // MustBeDStringOrDNull attempts to retrieve a DString or DNull from an Expr, panicking if the |
| 1229 | // assertion fails. |
| 1230 | func MustBeDStringOrDNull(e Expr) DString { |
| 1231 | i, ok := AsDString(e) |
| 1232 | if !ok && e != DNull { |
| 1233 | panic(errors.AssertionFailedf("expected *DString or DNull, found %T", e)) |
| 1234 | } |
| 1235 | return i |
| 1236 | } |
| 1237 | |
| 1238 | // ResolvedType implements the TypedExpr interface. |
| 1239 | func (*DString) ResolvedType() *types.T { |
nothing calls this directly
no test coverage detected
searching dependent graphs…