(n *NodePb)
| 1336 | return &NodePb{Bn: n} |
| 1337 | } |
| 1338 | func (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 | } |
| 1345 | func (m *BinaryNode) Expr() *Expr { |
| 1346 | fe := &Expr{Op: strings.ToLower(m.Operator.V)} |
| 1347 | if len(m.Args) > 0 { |
nothing calls this directly
no test coverage detected