| 1 | // Code generated by 'yaegi extract reflect'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 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 | "Pointer": reflect.ValueOf(reflect.Pointer), |
| 49 | "PointerTo": reflect.ValueOf(reflect.PointerTo), |
| 50 | "Ptr": reflect.ValueOf(reflect.Ptr), |
| 51 | "PtrTo": reflect.ValueOf(reflect.PtrTo), |
| 52 | "RecvDir": reflect.ValueOf(reflect.RecvDir), |
| 53 | "Select": reflect.ValueOf(reflect.Select), |
| 54 | "SelectDefault": reflect.ValueOf(reflect.SelectDefault), |
| 55 | "SelectRecv": reflect.ValueOf(reflect.SelectRecv), |
| 56 | "SelectSend": reflect.ValueOf(reflect.SelectSend), |
| 57 | "SendDir": reflect.ValueOf(reflect.SendDir), |
| 58 | "Slice": reflect.ValueOf(reflect.Slice), |
| 59 | "SliceOf": reflect.ValueOf(reflect.SliceOf), |
| 60 | "String": reflect.ValueOf(reflect.String), |
| 61 | "Struct": reflect.ValueOf(reflect.Struct), |
| 62 | "StructOf": reflect.ValueOf(reflect.StructOf), |
| 63 | "Swapper": reflect.ValueOf(reflect.Swapper), |
| 64 | "TypeOf": reflect.ValueOf(reflect.TypeOf), |
| 65 | "Uint": reflect.ValueOf(reflect.Uint), |
| 66 | "Uint16": reflect.ValueOf(reflect.Uint16), |
| 67 | "Uint32": reflect.ValueOf(reflect.Uint32), |
| 68 | "Uint64": reflect.ValueOf(reflect.Uint64), |
| 69 | "Uint8": reflect.ValueOf(reflect.Uint8), |
| 70 | "Uintptr": reflect.ValueOf(reflect.Uintptr), |
| 71 | "UnsafePointer": reflect.ValueOf(reflect.UnsafePointer), |
| 72 | "ValueOf": reflect.ValueOf(reflect.ValueOf), |
| 73 | "VisibleFields": reflect.ValueOf(reflect.VisibleFields), |
| 74 | "Zero": reflect.ValueOf(reflect.Zero), |
| 75 | |
| 76 | // type definitions |
| 77 | "ChanDir": reflect.ValueOf((*reflect.ChanDir)(nil)), |
| 78 | "Kind": reflect.ValueOf((*reflect.Kind)(nil)), |
| 79 | "MapIter": reflect.ValueOf((*reflect.MapIter)(nil)), |
| 80 | "Method": reflect.ValueOf((*reflect.Method)(nil)), |
| 81 | "SelectCase": reflect.ValueOf((*reflect.SelectCase)(nil)), |
| 82 | "SelectDir": reflect.ValueOf((*reflect.SelectDir)(nil)), |
| 83 | "SliceHeader": reflect.ValueOf((*reflect.SliceHeader)(nil)), |
| 84 | "StringHeader": reflect.ValueOf((*reflect.StringHeader)(nil)), |
| 85 | "StructField": reflect.ValueOf((*reflect.StructField)(nil)), |
| 86 | "StructTag": reflect.ValueOf((*reflect.StructTag)(nil)), |
| 87 | "Type": reflect.ValueOf((*reflect.Type)(nil)), |
| 88 | "Value": reflect.ValueOf((*reflect.Value)(nil)), |
| 89 | "ValueError": reflect.ValueOf((*reflect.ValueError)(nil)), |
| 90 | |
| 91 | // interface wrapper definitions |
| 92 | "_Type": reflect.ValueOf((*_reflect_Type)(nil)), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // _reflect_Type is an interface wrapper for Type type |
| 97 | type _reflect_Type struct { |
| 98 | IValue interface{} |
| 99 | WAlign func() int |
| 100 | WAssignableTo func(u reflect.Type) bool |
| 101 | WBits func() int |
| 102 | WChanDir func() reflect.ChanDir |
| 103 | WComparable func() bool |
| 104 | WConvertibleTo func(u reflect.Type) bool |
| 105 | WElem func() reflect.Type |
| 106 | WField func(i int) reflect.StructField |
| 107 | WFieldAlign func() int |
| 108 | WFieldByIndex func(index []int) reflect.StructField |
| 109 | WFieldByName func(name string) (reflect.StructField, bool) |
| 110 | WFieldByNameFunc func(match func(string) bool) (reflect.StructField, bool) |
| 111 | WImplements func(u reflect.Type) bool |
| 112 | WIn func(i int) reflect.Type |
| 113 | WIsVariadic func() bool |
| 114 | WKey func() reflect.Type |
| 115 | WKind func() reflect.Kind |
| 116 | WLen func() int |
| 117 | WMethod func(a0 int) reflect.Method |
| 118 | WMethodByName func(a0 string) (reflect.Method, bool) |
| 119 | WName func() string |
| 120 | WNumField func() int |
| 121 | WNumIn func() int |
| 122 | WNumMethod func() int |
| 123 | WNumOut func() int |
| 124 | WOut func(i int) reflect.Type |
| 125 | WPkgPath func() string |
| 126 | WSize func() uintptr |
| 127 | WString func() string |
| 128 | } |
| 129 | |
| 130 | func (W _reflect_Type) Align() int { return W.WAlign() } |
| 131 | func (W _reflect_Type) AssignableTo(u reflect.Type) bool { return W.WAssignableTo(u) } |
| 132 | func (W _reflect_Type) Bits() int { return W.WBits() } |
| 133 | func (W _reflect_Type) ChanDir() reflect.ChanDir { return W.WChanDir() } |
| 134 | func (W _reflect_Type) Comparable() bool { return W.WComparable() } |
| 135 | func (W _reflect_Type) ConvertibleTo(u reflect.Type) bool { return W.WConvertibleTo(u) } |
| 136 | func (W _reflect_Type) Elem() reflect.Type { return W.WElem() } |
| 137 | func (W _reflect_Type) Field(i int) reflect.StructField { return W.WField(i) } |
| 138 | func (W _reflect_Type) FieldAlign() int { return W.WFieldAlign() } |
| 139 | func (W _reflect_Type) FieldByIndex(index []int) reflect.StructField { return W.WFieldByIndex(index) } |
| 140 | func (W _reflect_Type) FieldByName(name string) (reflect.StructField, bool) { |
| 141 | return W.WFieldByName(name) |
| 142 | } |
| 143 | func (W _reflect_Type) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool) { |
| 144 | return W.WFieldByNameFunc(match) |
| 145 | } |
| 146 | func (W _reflect_Type) Implements(u reflect.Type) bool { return W.WImplements(u) } |
| 147 | func (W _reflect_Type) In(i int) reflect.Type { return W.WIn(i) } |
| 148 | func (W _reflect_Type) IsVariadic() bool { return W.WIsVariadic() } |
| 149 | func (W _reflect_Type) Key() reflect.Type { return W.WKey() } |
| 150 | func (W _reflect_Type) Kind() reflect.Kind { return W.WKind() } |
| 151 | func (W _reflect_Type) Len() int { return W.WLen() } |
| 152 | func (W _reflect_Type) Method(a0 int) reflect.Method { return W.WMethod(a0) } |
| 153 | func (W _reflect_Type) MethodByName(a0 string) (reflect.Method, bool) { return W.WMethodByName(a0) } |
| 154 | func (W _reflect_Type) Name() string { return W.WName() } |
| 155 | func (W _reflect_Type) NumField() int { return W.WNumField() } |
| 156 | func (W _reflect_Type) NumIn() int { return W.WNumIn() } |
| 157 | func (W _reflect_Type) NumMethod() int { return W.WNumMethod() } |
| 158 | func (W _reflect_Type) NumOut() int { return W.WNumOut() } |
| 159 | func (W _reflect_Type) Out(i int) reflect.Type { return W.WOut(i) } |
| 160 | func (W _reflect_Type) PkgPath() string { return W.WPkgPath() } |
| 161 | func (W _reflect_Type) Size() uintptr { return W.WSize() } |
| 162 | func (W _reflect_Type) String() string { |
| 163 | if W.WString == nil { |
| 164 | return "" |
| 165 | } |
| 166 | return W.WString() |
| 167 | } |