(key string)
| 25 | return &ContextWrapper{reflect.ValueOf(val), &s} |
| 26 | } |
| 27 | func (m *ContextWrapper) Get(key string) (value.Value, bool) { |
| 28 | defer func() { recover() }() |
| 29 | keyParts := strings.Split(key, ".") |
| 30 | dot := m.val |
| 31 | var final reflect.Value |
| 32 | ident := expr.NewIdentityNodeVal(key) |
| 33 | // Now if it's a method, it gets the arguments. |
| 34 | final = m.s.evalFieldChain(dot, dot, ident, keyParts, nil, final) |
| 35 | if final == zero { |
| 36 | return nil, false |
| 37 | } |
| 38 | if m.s.err != nil { |
| 39 | return nil, false |
| 40 | } |
| 41 | val := value.NewValue(final.Interface()) |
| 42 | if val == nil { |
| 43 | return nil, false |
| 44 | } |
| 45 | return val, true |
| 46 | } |
| 47 | func (m *ContextWrapper) Row() map[string]value.Value { return nil } |
| 48 | func (m *ContextWrapper) Ts() time.Time { return time.Time{} } |
| 49 |
nothing calls this directly
no test coverage detected