go/ast.BasicLit.Kind (field)
17 uses
go/ast (current package)
ast.go#L301: Kind token.Token // token.INT, token.FLOAT, token.IMAG, token.CHAR, or token.STRING
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#L986: if lit.Kind != token.INT && lit.Kind != token.FLOAT && lit.Kind != token.IMAG {
nodes.go#L1034: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1519: if lit.Kind != token.STRING {
nodes.go#L1550: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
printer.go#L936: p.lastTok = x.Kind
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L318: if x.Kind != 0 {
encode_ast.gen.go#L320: e.EncodeInt(int64(x.Kind))
encode_ast.gen.go#L349: x.Kind = token.Token(d.DecodeInt())
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L538: if n.Kind != token.STRING {
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. |