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

Method FromExpr

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

Source from the content-addressed store, hash-verified

1981 return fe
1982}
1983func (m *ArrayNode) FromExpr(e *Expr) error {
1984 if len(e.Op) > 0 {
1985 return fmt.Errorf("Unrecognized expression %+v", e)
1986 }
1987 if len(e.Args) == 0 {
1988 return fmt.Errorf("Invalid ArrayNode No args %+v", e)
1989 }
1990 args, err := NodesFromExprs(e.Args)
1991 if err != nil {
1992 return err
1993 }
1994 m.Args = args
1995 return nil
1996}
1997func (m *ArrayNode) Equal(n Node) bool {
1998 if m == nil && n == nil {
1999 return true

Callers

nothing calls this directly

Calls 2

NodesFromExprsFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected