go/ast.UnaryExpr.X (field)
13 uses
go/ast (current package)
ast.go#L385: X Expr // operand
ast.go#L520: func (x *UnaryExpr) End() token.Pos { return x.X.End() }
walk.go#L143: Walk(v, n.X)
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()}}
parser.go#L2194: x := as.Rhs[0].(*ast.UnaryExpr).X
go/printer
nodes.go#L790: p.expr1(x.X, prec, depth)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3297: if x.X != nil {
encode_ast.gen.go#L3299: e.EncodeAny(x.X)
encode_ast.gen.go#L3326: x.X = d.DecodeAny().(ast.Expr)
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. |