go/ast.BasicLit.ValuePos (field)
16 uses
go/ast (current package)
ast.go#L300: ValuePos token.Pos // literal position
ast.go#L472: func (x *BasicLit) Pos() token.Pos { return x.ValuePos }
ast.go#L510: func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
import.go#L208: s.Path.ValuePos = pos[i].Start
go/parser
parser.go#L744: tag = &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L1155: x := &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L2322: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L1034: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1550: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L314: if x.ValuePos != 0 {
encode_ast.gen.go#L316: e.EncodeInt(int64(x.ValuePos))
encode_ast.gen.go#L347: x.ValuePos = token.Pos(d.DecodeInt())
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L545: addComment(pcg, n.ValuePos, fmt.Sprintf("/* %d-byte string literal not displayed */", size))
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L484: Path: &ast.BasicLit{Value: strconv.Quote(p), Kind: token.STRING, ValuePos: pos},
 |
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. |