MCPcopy Create free account
hub / github.com/araddon/qlbridge / FromExpr

Method FromExpr

expr/node.go:926–932  ·  view source on GitHub ↗
(e *Expr)

Source from the content-addressed store, hash-verified

924 return &Expr{Value: m.Value.ToString()}
925}
926func (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}
933func (m *ValueNode) Equal(n Node) bool {
934 if m == nil && n == nil {
935 return true

Callers

nothing calls this directly

Calls 2

NewStringValueFunction · 0.92
ErrorfMethod · 0.80

Tested by

no test coverage detected