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

Method FromPB

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

Source from the content-addressed store, hash-verified

1612 return &NodePb{Tn: n}
1613}
1614func (m *TriNode) FromPB(n *NodePb) Node {
1615 return &TriNode{
1616 Operator: tokenFromInt(n.Tn.Op),
1617 Args: NodesFromNodesPb(n.Tn.Args),
1618 }
1619}
1620func (m *TriNode) Expr() *Expr {
1621 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1622 if len(m.Args) > 0 {

Callers 1

NodeFromNodePbFunction · 0.95

Calls 2

NodesFromNodesPbFunction · 0.85
tokenFromIntFunction · 0.70

Tested by

no test coverage detected