go/ast.UnaryExpr.Op (field)
12 uses
go/ast (current package)
ast.go#L384: Op token.Token // operator
go/parser
parser.go#L1538: return &ast.UnaryExpr{OpPos: pos, Op: op, X: p.checkExpr(x)}
parser.go#L1584: return &ast.UnaryExpr{OpPos: arrow, Op: token.ARROW, X: p.checkExpr(x)}
parser.go#L1690: y = []ast.Expr{&ast.UnaryExpr{OpPos: pos, Op: token.RANGE, X: p.parseRhs()}}
parser.go#L2152: y := []ast.Expr{&ast.UnaryExpr{OpPos: pos, Op: token.RANGE, X: p.parseRhs()}}
go/printer
nodes.go#L615: switch e.Op.String() + r.Op.String() {
nodes.go#L785: p.print(x.Op)
nodes.go#L786: if x.Op == token.RANGE {
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3293: if x.Op != 0 {
encode_ast.gen.go#L3295: e.EncodeInt(int64(x.Op))
encode_ast.gen.go#L3324: x.Op = token.Token(d.DecodeInt())
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
synopsis.go#L152: return fmt.Sprintf("%s%s", n.Op, OneLineNodeDepth(fset, n.X, depth))
 |
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. |