(e *Expr)
| 924 | return &Expr{Value: m.Value.ToString()} |
| 925 | } |
| 926 | func (m *ValueNode) FromExpr(e *Expr) error { |
| 927 | if len(e.Value) > 0 { |
| 928 | m.Value = value.NewStringValue(e.Value) |
| 929 | return nil |
| 930 | } |
| 931 | return fmt.Errorf("unrecognized value") |
| 932 | } |
| 933 | func (m *ValueNode) Equal(n Node) bool { |
| 934 | if m == nil && n == nil { |
| 935 | return true |
nothing calls this directly
no test coverage detected