func go/constant.BinaryOp
15 uses
go/constant (current package)
value.go#L1096: func BinaryOp(x_ Value, op token.Token, y_ Value) Value {
value.go#L1267: func add(x, y Value) Value { return BinaryOp(x, token.ADD, y) }
value.go#L1268: func sub(x, y Value) Value { return BinaryOp(x, token.SUB, y) }
value.go#L1269: func mul(x, y Value) Value { return BinaryOp(x, token.MUL, y) }
value.go#L1270: func quo(x, y Value) Value { return BinaryOp(x, token.QUO, y) }
go/types
builtins.go#L340: x.val = constant.BinaryOp(constant.ToFloat(x.val), token.ADD, constant.MakeImag(constant.ToFloat(y.val)))
expr.go#L386: *rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
expr.go#L396: *rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
expr.go#L1152: re2, im2 := constant.BinaryOp(re, token.MUL, re), constant.BinaryOp(im, token.MUL, im)
expr.go#L1172: x.val = constant.BinaryOp(x.val, op, y.val)
golang.org/x/tools/internal/gcimporter
bimport.go#L768: return constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
bimport.go#L813: x = constant.BinaryOp(x, token.QUO, d)
iimport.go#L612: val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
golang.org/x/tools/internal/pkgbits
decoder.go#L434: val = constant.BinaryOp(val, token.ADD, constant.MakeImag(r.scalar()))