type go/ast.BasicLit
29 uses
go/ast (current package)
ast.go#L200: Tag *BasicLit // field tag; or nil
ast.go#L302: BasicLit struct {
ast.go#L485: func (x *BasicLit) Pos() token.Pos { return x.ValuePos }
ast.go#L524: func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
ast.go#L556: func (*BasicLit) exprNode() {}
ast.go#L897: Path *BasicLit // import path
walk.go#L90: case *BadExpr, *Ident, *BasicLit:
go/doc
example.go#L349: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
go/parser
parser.go#L659: var tag *ast.BasicLit
parser.go#L661: tag = &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L1364: x := &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L1606: case *ast.BasicLit:
parser.go#L2534: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L846: case *ast.BasicLit:
nodes.go#L1046: func normalizedNumber(lit *ast.BasicLit) *ast.BasicLit {
nodes.go#L1095: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1571: func sanitizeImportPath(lit *ast.BasicLit) *ast.BasicLit {
nodes.go#L1611: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
printer.go#L937: case *ast.BasicLit:
go/types
expr.go#L515: case *ast.Ident, *ast.BasicLit, *ast.SelectorExpr:
expr.go#L1265: case *ast.BasicLit:
exprstring.go#L47: case *ast.BasicLit:
stmt.go#L459: Y := &ast.BasicLit{ValuePos: s.X.Pos(), Kind: token.INT, Value: "1"} // use x's position
struct.go#L207: func (check *Checker) tag(t *ast.BasicLit) string {
version.go#L18: func (check *Checker) langCompat(lit *ast.BasicLit) {
gotest.tools/v3/internal/source
update.go#L102: decl.Values[0] = &ast.BasicLit{
update.go#L113: decl.Rhs[0] = &ast.BasicLit{