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)