github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_reflect.go (about) 1 // Code generated by 'yaegi extract reflect'. DO NOT EDIT. 2 3 //go:build go1.17 4 // +build go1.17 5 6 package stdlib 7 8 import ( 9 "reflect" 10 ) 11 12 func init() { 13 Symbols["reflect/reflect"] = map[string]reflect.Value{ 14 // function, constant and variable definitions 15 "Append": reflect.ValueOf(reflect.Append), 16 "AppendSlice": reflect.ValueOf(reflect.AppendSlice), 17 "Array": reflect.ValueOf(reflect.Array), 18 "ArrayOf": reflect.ValueOf(reflect.ArrayOf), 19 "Bool": reflect.ValueOf(reflect.Bool), 20 "BothDir": reflect.ValueOf(reflect.BothDir), 21 "Chan": reflect.ValueOf(reflect.Chan), 22 "ChanOf": reflect.ValueOf(reflect.ChanOf), 23 "Complex128": reflect.ValueOf(reflect.Complex128), 24 "Complex64": reflect.ValueOf(reflect.Complex64), 25 "Copy": reflect.ValueOf(reflect.Copy), 26 "DeepEqual": reflect.ValueOf(reflect.DeepEqual), 27 "Float32": reflect.ValueOf(reflect.Float32), 28 "Float64": reflect.ValueOf(reflect.Float64), 29 "Func": reflect.ValueOf(reflect.Func), 30 "FuncOf": reflect.ValueOf(reflect.FuncOf), 31 "Indirect": reflect.ValueOf(reflect.Indirect), 32 "Int": reflect.ValueOf(reflect.Int), 33 "Int16": reflect.ValueOf(reflect.Int16), 34 "Int32": reflect.ValueOf(reflect.Int32), 35 "Int64": reflect.ValueOf(reflect.Int64), 36 "Int8": reflect.ValueOf(reflect.Int8), 37 "Interface": reflect.ValueOf(reflect.Interface), 38 "Invalid": reflect.ValueOf(reflect.Invalid), 39 "MakeChan": reflect.ValueOf(reflect.MakeChan), 40 "MakeFunc": reflect.ValueOf(reflect.MakeFunc), 41 "MakeMap": reflect.ValueOf(reflect.MakeMap), 42 "MakeMapWithSize": reflect.ValueOf(reflect.MakeMapWithSize), 43 "MakeSlice": reflect.ValueOf(reflect.MakeSlice), 44 "Map": reflect.ValueOf(reflect.Map), 45 "MapOf": reflect.ValueOf(reflect.MapOf), 46 "New": reflect.ValueOf(reflect.New), 47 "NewAt": reflect.ValueOf(reflect.NewAt), 48 "Ptr": reflect.ValueOf(reflect.Ptr), 49 "PtrTo": reflect.ValueOf(reflect.PtrTo), 50 "RecvDir": reflect.ValueOf(reflect.RecvDir), 51 "Select": reflect.ValueOf(reflect.Select), 52 "SelectDefault": reflect.ValueOf(reflect.SelectDefault), 53 "SelectRecv": reflect.ValueOf(reflect.SelectRecv), 54 "SelectSend": reflect.ValueOf(reflect.SelectSend), 55 "SendDir": reflect.ValueOf(reflect.SendDir), 56 "Slice": reflect.ValueOf(reflect.Slice), 57 "SliceOf": reflect.ValueOf(reflect.SliceOf), 58 "String": reflect.ValueOf(reflect.String), 59 "Struct": reflect.ValueOf(reflect.Struct), 60 "StructOf": reflect.ValueOf(reflect.StructOf), 61 "Swapper": reflect.ValueOf(reflect.Swapper), 62 "TypeOf": reflect.ValueOf(reflect.TypeOf), 63 "Uint": reflect.ValueOf(reflect.Uint), 64 "Uint16": reflect.ValueOf(reflect.Uint16), 65 "Uint32": reflect.ValueOf(reflect.Uint32), 66 "Uint64": reflect.ValueOf(reflect.Uint64), 67 "Uint8": reflect.ValueOf(reflect.Uint8), 68 "Uintptr": reflect.ValueOf(reflect.Uintptr), 69 "UnsafePointer": reflect.ValueOf(reflect.UnsafePointer), 70 "ValueOf": reflect.ValueOf(reflect.ValueOf), 71 "VisibleFields": reflect.ValueOf(reflect.VisibleFields), 72 "Zero": reflect.ValueOf(reflect.Zero), 73 74 // type definitions 75 "ChanDir": reflect.ValueOf((*reflect.ChanDir)(nil)), 76 "Kind": reflect.ValueOf((*reflect.Kind)(nil)), 77 "MapIter": reflect.ValueOf((*reflect.MapIter)(nil)), 78 "Method": reflect.ValueOf((*reflect.Method)(nil)), 79 "SelectCase": reflect.ValueOf((*reflect.SelectCase)(nil)), 80 "SelectDir": reflect.ValueOf((*reflect.SelectDir)(nil)), 81 "SliceHeader": reflect.ValueOf((*reflect.SliceHeader)(nil)), 82 "StringHeader": reflect.ValueOf((*reflect.StringHeader)(nil)), 83 "StructField": reflect.ValueOf((*reflect.StructField)(nil)), 84 "StructTag": reflect.ValueOf((*reflect.StructTag)(nil)), 85 "Type": reflect.ValueOf((*reflect.Type)(nil)), 86 "Value": reflect.ValueOf((*reflect.Value)(nil)), 87 "ValueError": reflect.ValueOf((*reflect.ValueError)(nil)), 88 89 // interface wrapper definitions 90 "_Type": reflect.ValueOf((*_reflect_Type)(nil)), 91 } 92 } 93 94 // _reflect_Type is an interface wrapper for Type type 95 type _reflect_Type struct { 96 IValue interface{} 97 WAlign func() int 98 WAssignableTo func(u reflect.Type) bool 99 WBits func() int 100 WChanDir func() reflect.ChanDir 101 WComparable func() bool 102 WConvertibleTo func(u reflect.Type) bool 103 WElem func() reflect.Type 104 WField func(i int) reflect.StructField 105 WFieldAlign func() int 106 WFieldByIndex func(index []int) reflect.StructField 107 WFieldByName func(name string) (reflect.StructField, bool) 108 WFieldByNameFunc func(match func(string) bool) (reflect.StructField, bool) 109 WImplements func(u reflect.Type) bool 110 WIn func(i int) reflect.Type 111 WIsVariadic func() bool 112 WKey func() reflect.Type 113 WKind func() reflect.Kind 114 WLen func() int 115 WMethod func(a0 int) reflect.Method 116 WMethodByName func(a0 string) (reflect.Method, bool) 117 WName func() string 118 WNumField func() int 119 WNumIn func() int 120 WNumMethod func() int 121 WNumOut func() int 122 WOut func(i int) reflect.Type 123 WPkgPath func() string 124 WSize func() uintptr 125 WString func() string 126 } 127 128 func (W _reflect_Type) Align() int { 129 return W.WAlign() 130 } 131 func (W _reflect_Type) AssignableTo(u reflect.Type) bool { 132 return W.WAssignableTo(u) 133 } 134 func (W _reflect_Type) Bits() int { 135 return W.WBits() 136 } 137 func (W _reflect_Type) ChanDir() reflect.ChanDir { 138 return W.WChanDir() 139 } 140 func (W _reflect_Type) Comparable() bool { 141 return W.WComparable() 142 } 143 func (W _reflect_Type) ConvertibleTo(u reflect.Type) bool { 144 return W.WConvertibleTo(u) 145 } 146 func (W _reflect_Type) Elem() reflect.Type { 147 return W.WElem() 148 } 149 func (W _reflect_Type) Field(i int) reflect.StructField { 150 return W.WField(i) 151 } 152 func (W _reflect_Type) FieldAlign() int { 153 return W.WFieldAlign() 154 } 155 func (W _reflect_Type) FieldByIndex(index []int) reflect.StructField { 156 return W.WFieldByIndex(index) 157 } 158 func (W _reflect_Type) FieldByName(name string) (reflect.StructField, bool) { 159 return W.WFieldByName(name) 160 } 161 func (W _reflect_Type) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool) { 162 return W.WFieldByNameFunc(match) 163 } 164 func (W _reflect_Type) Implements(u reflect.Type) bool { 165 return W.WImplements(u) 166 } 167 func (W _reflect_Type) In(i int) reflect.Type { 168 return W.WIn(i) 169 } 170 func (W _reflect_Type) IsVariadic() bool { 171 return W.WIsVariadic() 172 } 173 func (W _reflect_Type) Key() reflect.Type { 174 return W.WKey() 175 } 176 func (W _reflect_Type) Kind() reflect.Kind { 177 return W.WKind() 178 } 179 func (W _reflect_Type) Len() int { 180 return W.WLen() 181 } 182 func (W _reflect_Type) Method(a0 int) reflect.Method { 183 return W.WMethod(a0) 184 } 185 func (W _reflect_Type) MethodByName(a0 string) (reflect.Method, bool) { 186 return W.WMethodByName(a0) 187 } 188 func (W _reflect_Type) Name() string { 189 return W.WName() 190 } 191 func (W _reflect_Type) NumField() int { 192 return W.WNumField() 193 } 194 func (W _reflect_Type) NumIn() int { 195 return W.WNumIn() 196 } 197 func (W _reflect_Type) NumMethod() int { 198 return W.WNumMethod() 199 } 200 func (W _reflect_Type) NumOut() int { 201 return W.WNumOut() 202 } 203 func (W _reflect_Type) Out(i int) reflect.Type { 204 return W.WOut(i) 205 } 206 func (W _reflect_Type) PkgPath() string { 207 return W.WPkgPath() 208 } 209 func (W _reflect_Type) Size() uintptr { 210 return W.WSize() 211 } 212 func (W _reflect_Type) String() string { 213 if W.WString == nil { 214 return "" 215 } 216 return W.WString() 217 }