go/ast.BasicLit.Value (field)
32 uses
go/ast (current package)
ast.go#L302: Value string // literal string; e.g. 42, 0x7f, 3.14, 1e-9, 2.4i, 'a', '\x7f', "foo" or `\m\n\o`
ast.go#L510: func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
filter.go#L463: if path := imp.Path.Value; !seen[path] {
import.go#L60: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
resolve.go#L116: path, _ := strconv.Unquote(spec.Path.Value)
go/build
read.go#L425: quoted := spec.Path.Value
go/doc
example.go#L273: p, err := strconv.Unquote(s.Path.Value)
example.go#L346: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
reader.go#L514: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
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#L989: if len(lit.Value) < 2 {
nodes.go#L996: x := lit.Value
nodes.go#L1034: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
nodes.go#L1522: s, err := strconv.Unquote(lit.Value)
nodes.go#L1547: if s == lit.Value {
nodes.go#L1550: return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
printer.go#L933: data = x.Value
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L322: if x.Value != "" {
encode_ast.gen.go#L324: e.EncodeString(x.Value)
encode_ast.gen.go#L351: x.Value = d.DecodeString()
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L541: size := len(n.Value) - 2 // subtract quotation marks
linkify.go#L546: if len(n.Value) == 0 {
linkify.go#L550: if quote := n.Value[0]; quote == '`' {
linkify.go#L551: n.Value = "``"
linkify.go#L553: n.Value = `""`
linkify.go#L676: if path, err := strconv.Unquote(spec.Path.Value); err == nil {
synopsis.go#L49: pkg := n.Specs[0].(*ast.ImportSpec).Path.Value
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L207: p, err := strconv.Unquote(s.Path.Value)
example.go#L484: Path: &ast.BasicLit{Value: strconv.Quote(p), Kind: token.STRING, ValuePos: pos},
reader.go#L518: if import_, err := strconv.Unquote(s.Path.Value); err == nil {
 |
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. |