go/ast.BinaryExpr.Op (field)
24 uses
go/ast (current package)
ast.go#L404: Op token.Token // operator
go/doc
exports.go#L188: if t.Op == token.OR { // union
go/parser
parser.go#L1095: t.Op = token.OR
parser.go#L1827: x = &ast.BinaryExpr{X: x, OpPos: pos, Op: op, Y: y}
parser.go#L2654: if t.Op == token.MUL && (isTypeLit(t.Y) || p.tok == token.COMMA) {
go/printer
nodes.go#L626: switch e.Op.Precedence() {
nodes.go#L635: if l.Op.Precedence() < e.Op.Precedence() {
nodes.go#L650: if r.Op.Precedence() <= e.Op.Precedence() {
nodes.go#L663: if e.Op == token.QUO { // `*/`
nodes.go#L668: switch e.Op.String() + r.Op.String() {
nodes.go#L699: if !ok || prec != x.Op.Precedence() {
nodes.go#L750: prec := x.Op.Precedence()
nodes.go#L770: p.print(x.OpPos, x.Op)
go/types
decl.go#L660: wrap = op.Op == token.OR
expr.go#L123: if int(e.Op) < len(op2str2) {
expr.go#L124: return op2str2[e.Op]
expr.go#L538: if isComparison(x.Op) {
expr.go#L541: } else if isShift(x.Op) {
expr.go#L1625: check.binary(x, e, e.X, e.Y, e.Op, e.OpPos)
exprstring.go#L121: buf.WriteString(x.Op.String())
union.go#L189: if o, _ := x.(*ast.BinaryExpr); o != nil && o.Op == token.OR {
gotest.tools/v3/internal/assert
assert.go#L128: switch binaryExpr.Op {