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

Method FromPB

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

Source from the content-addressed store, hash-verified

1336 return &NodePb{Bn: n}
1337}
1338func (m *BinaryNode) FromPB(n *NodePb) Node {
1339 return &BinaryNode{
1340 Operator: tokenFromInt(n.Bn.Op),
1341 Paren: n.Bn.Paren,
1342 Args: NodesFromNodesPb(n.Bn.Args),
1343 }
1344}
1345func (m *BinaryNode) Expr() *Expr {
1346 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1347 if len(m.Args) > 0 {

Callers

nothing calls this directly

Calls 2

NodesFromNodesPbFunction · 0.85
tokenFromIntFunction · 0.70

Tested by

no test coverage detected