go/ast.BranchStmt.TokPos (field)
7 uses
go/ast (current package)
ast.go#L674: TokPos token.Pos // position of Tok
ast.go#L766: func (s *BranchStmt) Pos() token.Pos { return s.TokPos }
ast.go#L804: return token.Pos(int(s.TokPos) + len(s.Tok.String()))
go/parser
parser.go#L1820: return &ast.BranchStmt{TokPos: pos, Tok: tok, Label: label}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L503: if x.TokPos != 0 {
encode_ast.gen.go#L505: e.EncodeInt(int64(x.TokPos))
encode_ast.gen.go#L536: x.TokPos = 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. |