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

Method FromPB

expr/node.go:1487–1492  ·  view source on GitHub ↗
(n *NodePb)

Source from the content-addressed store, hash-verified

1485 return &NodePb{Booln: n}
1486}
1487func (m *BooleanNode) FromPB(n *NodePb) Node {
1488 return &BooleanNode{
1489 Operator: tokenFromInt(n.Booln.Op),
1490 Args: NodesFromNodesPb(n.Booln.Args),
1491 }
1492}
1493func (m *BooleanNode) Expr() *Expr {
1494 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1495 if len(m.Args) > 0 {

Callers 1

NodeFromNodePbFunction · 0.95

Calls 2

NodesFromNodesPbFunction · 0.85
tokenFromIntFunction · 0.70

Tested by

no test coverage detected