go/ast.SwitchStmt.Init (field)
8 uses
go/ast (current package)
ast.go#L706: Init Stmt // initialization statement; or nil
walk.go#L241: if n.Init != nil {
walk.go#L242: Walk(v, n.Init)
go/parser
parser.go#L2054: return &ast.SwitchStmt{Switch: pos, Init: s1, Tag: p.makeExpr(s2, "switch expression"), Body: body}
go/printer
nodes.go#L1356: p.controlClause(false, s.Init, s.Tag, nil)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3019: if x.Init != nil {
encode_ast.gen.go#L3021: e.EncodeAny(x.Init)
encode_ast.gen.go#L3054: x.Init = 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. |