()
| 28 | } |
| 29 | |
| 30 | func (re *reflectExpression) Value() interface{} { |
| 31 | rootVal := re.root.Value() |
| 32 | if rootVal == nil { |
| 33 | return nil |
| 34 | } |
| 35 | |
| 36 | _, val, err := reflectValueFromPath(reflect.ValueOf(rootVal), re.path) |
| 37 | if err != nil { |
| 38 | log.Print("walk - reflectExpression.Value - Error: ", err.Error()) |
| 39 | } |
| 40 | |
| 41 | if !val.IsValid() { |
| 42 | return nil |
| 43 | } |
| 44 | |
| 45 | return val.Interface() |
| 46 | } |
| 47 | |
| 48 | func (re *reflectExpression) Changed() *Event { |
| 49 | return re.root.Changed() |
nothing calls this directly
no test coverage detected