go/ast.SwitchStmt.Body (field)
8 uses
go/ast (current package)
ast.go#L708: Body *BlockStmt // CaseClauses only
ast.go#L827: func (s *SwitchStmt) End() token.Pos { return s.Body.End() }
walk.go#L247: Walk(v, n.Body)
go/parser
parser.go#L2054: return &ast.SwitchStmt{Switch: pos, Init: s1, Tag: p.makeExpr(s2, "switch expression"), Body: body}
go/printer
nodes.go#L1357: p.block(s.Body, 0)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3027: if x.Body != nil {
encode_ast.gen.go#L3029: encode_ast_BlockStmt(e, x.Body)
encode_ast.gen.go#L3058: decode_ast_BlockStmt(d, &x.Body)
![]() |
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. |