go/ast.UnaryExpr.OpPos (field)
9 uses
go/ast (current package)
ast.go#L383: OpPos token.Pos // position of Op
ast.go#L487: func (x *UnaryExpr) Pos() token.Pos { return x.OpPos }
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()}}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3289: if x.OpPos != 0 {
encode_ast.gen.go#L3291: e.EncodeInt(int64(x.OpPos))
encode_ast.gen.go#L3322: x.OpPos = token.Pos(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. |