go/ast.CaseClause.Colon (field)
8 uses
go/ast (current package)
ast.go#L699: Colon token.Pos // position of ":"
ast.go#L825: return s.Colon + 1
go/parser
parser.go#L1970: return &ast.CaseClause{Case: pos, List: list, Colon: colon, Body: body}
go/printer
nodes.go#L1347: p.exprList(s.Pos(), s.List, 1, 0, s.Colon, false)
nodes.go#L1351: p.print(s.Colon, token.COLON)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L645: if x.Colon != 0 {
encode_ast.gen.go#L647: e.EncodeInt(int64(x.Colon))
encode_ast.gen.go#L678: x.Colon = 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. |