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

Method FromPB

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

Source from the content-addressed store, hash-verified

1744 return &NodePb{Un: n}
1745}
1746func (m *UnaryNode) FromPB(n *NodePb) Node {
1747 return &UnaryNode{
1748 Operator: tokenFromInt(n.Un.Op),
1749 Arg: NodeFromNodePb(&n.Un.Arg),
1750 }
1751}
1752func (m *UnaryNode) Expr() *Expr {
1753 fe := &Expr{Op: strings.ToLower(m.Operator.V)}
1754 fe.Args = []*Expr{m.Arg.Expr()}

Callers 1

NodeFromNodePbFunction · 0.95

Calls 2

NodeFromNodePbFunction · 0.85
tokenFromIntFunction · 0.70

Tested by

no test coverage detected