go/ast.IfStmt.Else (field)
13 uses
go/ast (current package)
ast.go#L692: Else Stmt // else branch; or nil
ast.go#L816: if s.Else != nil {
ast.go#L817: return s.Else.End()
walk.go#L232: if n.Else != nil {
walk.go#L233: Walk(v, n.Else)
go/parser
parser.go#L1930: return &ast.IfStmt{If: pos, Init: init, Cond: cond, Body: body, Else: else_}
go/printer
nodes.go#L1329: if s.Else != nil {
nodes.go#L1331: switch s.Else.(type) {
nodes.go#L1333: p.stmt(s.Else, nextIsRBrace)
nodes.go#L1339: p.stmt(s.Else, true)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1885: if x.Else != nil {
encode_ast.gen.go#L1887: e.EncodeAny(x.Else)
encode_ast.gen.go#L1918: x.Else = d.DecodeAny().(ast.Stmt)
![]() |
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. |