MCPcopy Create free account
hub / github.com/google/gapid / binaryOp

Method binaryOp

gapil/bapi/encode.go:502–512  ·  view source on GitHub ↗
(n *semantic.BinaryOp)

Source from the content-addressed store, hash-verified

500}
501
502func (e *encoder) binaryOp(n *semantic.BinaryOp) (outID uint64) {
503 e.build(&e.instances.BinaryOp, e.maps.BinaryOp, n, &outID, func() *BinaryOp {
504 return &BinaryOp{
505 Ast: e.astBinaryOp(n.AST),
506 Type: e.ty(n.Type),
507 Lhs: e.expr(n.LHS),
508 Operator: e.str(n.Operator),
509 Rhs: e.expr(n.RHS)}
510 })
511 return
512}
513
514func (e *encoder) bitTest(n *semantic.BitTest) (outID uint64) {
515 e.build(&e.instances.BitTest, e.maps.BitTest, n, &outID, func() *BitTest {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 5

buildMethod · 0.95
astBinaryOpMethod · 0.95
tyMethod · 0.95
exprMethod · 0.95
strMethod · 0.95

Tested by

no test coverage detected