go/ast.BinaryExpr.Op (field)
15 uses
go/ast (current package)
ast.go#L392: Op token.Token // operator
go/parser
parser.go#L1623: x = &ast.BinaryExpr{X: p.checkExpr(x), OpPos: pos, Op: op, Y: p.checkExpr(y)}
go/printer
nodes.go#L573: switch e.Op.Precedence() {
nodes.go#L582: if l.Op.Precedence() < e.Op.Precedence() {
nodes.go#L597: if r.Op.Precedence() <= e.Op.Precedence() {
nodes.go#L610: if e.Op == token.QUO { // `*/`
nodes.go#L615: switch e.Op.String() + r.Op.String() {
nodes.go#L646: if !ok || prec != x.Op.Precedence() {
nodes.go#L697: prec := x.Op.Precedence()
nodes.go#L717: p.print(x.OpPos, x.Op)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L383: if x.Op != 0 {
encode_ast.gen.go#L385: e.EncodeInt(int64(x.Op))
encode_ast.gen.go#L416: x.Op = token.Token(d.DecodeInt())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |