type go/ast.BasicLit
30 uses
go/ast (current package)
ast.go#L201: Tag *BasicLit // field tag; or nil
ast.go#L299: BasicLit struct {
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)) }
ast.go#L541: func (*BasicLit) exprNode() {}
ast.go#L881: Path *BasicLit // import path
walk.go#L88: case *BadExpr, *Ident, *BasicLit:
go/doc
example.go#L346: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
go/parser
parser.go#L742: var tag *ast.BasicLit
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#L1381: case *ast.BasicLit:
parser.go#L2322: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L793: case *ast.BasicLit:
nodes.go#L985: func normalizedNumber(lit *ast.BasicLit) *ast.BasicLit {
nodes.go#L1034: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1510: func sanitizeImportPath(lit *ast.BasicLit) *ast.BasicLit {
nodes.go#L1550: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
printer.go#L932: case *ast.BasicLit:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L310: func encode_ast_BasicLit(e *codec.Encoder, x *ast.BasicLit) {
encode_ast.gen.go#L329: func decode_ast_BasicLit(d *codec.Decoder, p **ast.BasicLit) {
encode_ast.gen.go#L335: *p = ref.(*ast.BasicLit)
encode_ast.gen.go#L338: var x ast.BasicLit
encode_ast.gen.go#L360: codec.Register(&ast.BasicLit{},
encode_ast.gen.go#L361: func(e *codec.Encoder, x interface{}) { encode_ast_BasicLit(e, x.(*ast.BasicLit)) },
encode_ast.gen.go#L363: var x *ast.BasicLit
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L537: case *ast.BasicLit:
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. |