go/ast.BasicLit.Value (field)
33 uses
go/ast (current package)
ast.go#L317: Value string // literal string; e.g. 42, 0x7f, 3.14, 1e-9, 2.4i, 'a', '\x7f', "foo" or `\m\n\o`
ast.go#L534: func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
filter.go#L461: if path := imp.Path.Value; !seen[path] {
import.go#L71: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
resolve.go#L119: path, _ := strconv.Unquote(spec.Path.Value)
go/build
read.go#L469: quoted := spec.Path.Value
go/doc
example.go#L215: p, err := strconv.Unquote(s.Path.Value)
reader.go#L580: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
go/parser
parser.go#L729: tag = &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L1467: x := &ast.BasicLit{ValuePos: p.pos, Kind: p.tok, Value: p.lit}
parser.go#L2521: Path: &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},
go/printer
nodes.go#L1099: if len(lit.Value) < 2 {
nodes.go#L1106: x := lit.Value
nodes.go#L1144: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1651: s, err := strconv.Unquote(lit.Value)
nodes.go#L1676: if s == lit.Value {
nodes.go#L1679: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
printer.go#L958: data = x.Value
go/types
exprstring.go#L47: buf.WriteString(x.Value)
literals.go#L22: s := lit.Value
literals.go#L62: if len(e.Value) > limit {
literals.go#L63: check.errorf(e, InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value))
literals.go#L68: x.setConst(e.Kind, e.Value)
literals.go#L74: check.errorf(e, InvalidConstVal, "malformed constant: %s", e.Value)
resolver.go#L265: if d.spec.Path.Value == "" {
resolver.go#L268: path, err := validatedImportPath(d.spec.Path.Value)
stmt.go#L507: Y := &ast.BasicLit{ValuePos: s.X.Pos(), Kind: token.INT, Value: "1"} // use x's position
struct.go#L214: if val, err := strconv.Unquote(t.Value); err == nil {
struct.go#L218: check.errorf(t, InvalidSyntaxTree, "incorrect tag syntax: %q", t.Value)
golang.org/x/tools/go/packages
packages.go#L1251: if imp.Path.Value == `"C"` {
gotest.tools/v3/internal/source
update.go#L104: Value: "`" + value + "`",
update.go#L115: Value: "`" + value + "`",