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

Method Expr

expr/node.go:1620–1629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1618 }
1619}
1620func (m *TriNode) Expr() *Expr {
1621 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1622 if len(m.Args) > 0 {
1623 fe.Args = ExprsFromNodes(m.Args)
1624 }
1625 if m.negated {
1626 return &Expr{Op: "not", Args: []*Expr{fe}}
1627 }
1628 return fe
1629}
1630func (m *TriNode) FromExpr(e *Expr) error {
1631 if e.Op == "" {
1632 return fmt.Errorf("unrecognized TriNode no op")

Callers

nothing calls this directly

Calls 1

ExprsFromNodesFunction · 0.85

Tested by

no test coverage detected