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

Method Expr

expr/node.go:1493–1502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1491 }
1492}
1493func (m *BooleanNode) Expr() *Expr {
1494 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1495 if len(m.Args) > 0 {
1496 fe.Args = ExprsFromNodes(m.Args)
1497 }
1498 if m.negated {
1499 return &Expr{Op: "not", Args: []*Expr{fe}}
1500 }
1501 return fe
1502}
1503func (m *BooleanNode) FromExpr(e *Expr) error {
1504 if e.Op == "" {
1505 return fmt.Errorf("unrecognized BooleanNode op")

Callers

nothing calls this directly

Calls 1

ExprsFromNodesFunction · 0.85

Tested by

no test coverage detected