(strs []string, err error)
| 44 | } |
| 45 | |
| 46 | func listStringOrError(strs []string, err error) ref.Val { |
| 47 | if err != nil { |
| 48 | return types.NewErrFromString(err.Error()) |
| 49 | } |
| 50 | return types.DefaultTypeAdapter.NativeToValue(strs) |
| 51 | } |
| 52 | |
| 53 | func extractIdent(target ast.Expr) (string, bool) { |
| 54 | switch target.Kind() { |
no test coverage detected