go/ast.IfStmt.Cond (field)
7 uses
go/ast (current package)
ast.go#L690: Cond Expr // condition
walk.go#L230: Walk(v, n.Cond)
go/parser
parser.go#L1930: return &ast.IfStmt{If: pos, Init: init, Cond: cond, Body: body, Else: else_}
go/printer
nodes.go#L1327: p.controlClause(false, s.Init, s.Cond, nil)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1877: if x.Cond != nil {
encode_ast.gen.go#L1879: e.EncodeAny(x.Cond)
encode_ast.gen.go#L1914: x.Cond = d.DecodeAny().(ast.Expr)
![]() |
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. |