go/ast.BasicLit.Value (field)

34 uses

	go/ast (current package)
		ast.go#L305: 		Value    string      // literal string; e.g. 42, 0x7f, 3.14, 1e-9, 2.4i, 'a', '\x7f', "foo" or `\m\n\o`
		ast.go#L524: 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#L457: 			quoted := spec.Path.Value

	go/doc
		example.go#L276: 		p, err := strconv.Unquote(s.Path.Value)
		example.go#L349: 		s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
		reader.go#L568: 						if import_, err := strconv.Unquote(s.Path.Value); err == nil {

	go/parser
		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#L2534: 		Path:    &ast.BasicLit{ValuePos: pos, Kind: token.STRING, Value: path},

	go/printer
		nodes.go#L1050: 	if len(lit.Value) < 2 {
		nodes.go#L1057: 	x := lit.Value
		nodes.go#L1095: 	return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: lit.Kind, Value: x}
		nodes.go#L1583: 	s, err := strconv.Unquote(lit.Value)
		nodes.go#L1608: 	if s == lit.Value {
		nodes.go#L1611: 	return &ast.BasicLit{ValuePos: lit.ValuePos, Kind: token.STRING, Value: s}
		printer.go#L938: 			data = x.Value

	go/types
		expr.go#L1279: 			if len(e.Value) > limit {
		expr.go#L1280: 				check.errorf(e, _InvalidConstVal, "excessively long constant: %s... (%d chars)", e.Value[:10], len(e.Value))
		expr.go#L1284: 		x.setConst(e.Kind, e.Value)
		expr.go#L1290: 			check.errorf(e, _InvalidConstVal, "malformed constant: %s", e.Value)
		exprstring.go#L48: 		buf.WriteString(x.Value)
		resolver.go#L256: 				path, err := validatedImportPath(d.spec.Path.Value)
		stmt.go#L459: 		Y := &ast.BasicLit{ValuePos: s.X.Pos(), Kind: token.INT, Value: "1"} // use x's position
		struct.go#L210: 			if val, err := strconv.Unquote(t.Value); err == nil {
		struct.go#L214: 		check.invalidAST(t, "incorrect tag syntax: %q", t.Value)
		version.go#L19: 	s := lit.Value

	golang.org/x/tools/go/packages
		golist_overlay.go#L395: 		quotedPath := imp.Path.Value
		packages.go#L1068: 				if imp.Path.Value == `"C"` {

	gotest.tools/v3/internal/source
		update.go#L104: 			Value: "`" + value + "`",
		update.go#L115: 			Value: "`" + value + "`",