go/ast.TypeSwitchStmt.Init (field)
9 uses
go/ast (current package)
ast.go#L714: Init Stmt // initialization statement; or nil
walk.go#L250: if n.Init != nil {
walk.go#L251: Walk(v, n.Init)
go/parser
parser.go#L2051: return &ast.TypeSwitchStmt{Switch: pos, Init: s1, Assign: s2, Body: body}
go/printer
nodes.go#L1361: if s.Init != nil {
nodes.go#L1363: p.stmt(s.Init, false)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3226: if x.Init != nil {
encode_ast.gen.go#L3228: e.EncodeAny(x.Init)
encode_ast.gen.go#L3261: 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. |