go/ast.SwitchStmt.Switch (field)
6 uses
go/ast (current package)
ast.go#L705: Switch token.Pos // position of "switch" keyword
ast.go#L770: func (s *SwitchStmt) Pos() token.Pos { return s.Switch }
go/parser
parser.go#L2054: return &ast.SwitchStmt{Switch: pos, Init: s1, Tag: p.makeExpr(s2, "switch expression"), Body: body}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3015: if x.Switch != 0 {
encode_ast.gen.go#L3017: e.EncodeInt(int64(x.Switch))
encode_ast.gen.go#L3052: 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. |