aboutsummaryrefslogtreecommitdiff
path: root/go/ssa/interp/testdata/src/reflect/reflect.go
blob: 8a23d272f934562f3f939b7d36f14ca675733703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package reflect

type Type interface {
	String() string
	Kind() Kind
	Elem() Type
}

type Value struct {
}

func (Value) String() string

func (Value) Elem() string
func (Value) Kind() Kind
func (Value) Int() int64

func SliceOf(Type) Type

func TypeOf(interface{}) Type

func ValueOf(interface{}) Value

type Kind uint

// Constants need to be kept in sync with the actual definitions for comparisons in tests.
const (
	Invalid Kind = iota
	Bool
	Int
	Int8
	Int16
	Int32
	Int64
	Uint
	Uint8
	Uint16
	Uint32
	Uint64
	Uintptr
	Float32
	Float64
	Complex64
	Complex128
	Array
	Chan
	Func
	Interface
	Map
	Pointer
	Slice
	String
	Struct
	UnsafePointer
)

const Ptr = Pointer