go/ast.TypeSwitchStmt.Switch (field)
6 uses
go/ast (current package)
ast.go#L713: Switch token.Pos // position of "switch" keyword
ast.go#L771: func (s *TypeSwitchStmt) Pos() token.Pos { return s.Switch }
go/parser
parser.go#L2051: return &ast.TypeSwitchStmt{Switch: pos, Init: s1, Assign: s2, Body: body}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3222: if x.Switch != 0 {
encode_ast.gen.go#L3224: e.EncodeInt(int64(x.Switch))
encode_ast.gen.go#L3259: x.Switch = token.Pos(d.DecodeInt())
![]() |
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. |