github.com/goplus/gossa@v0.3.25/pkg/reflect/go116_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.16,!go1.17 4 5 package reflect 6 7 import ( 8 q "reflect" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "reflect", 19 Path: "reflect", 20 Deps: map[string]string{ 21 "internal/unsafeheader": "unsafeheader", 22 "math": "math", 23 "runtime": "runtime", 24 "strconv": "strconv", 25 "sync": "sync", 26 "unicode": "unicode", 27 "unicode/utf8": "utf8", 28 "unsafe": "unsafe", 29 }, 30 Interfaces: map[string]reflect.Type{ 31 "Type": reflect.TypeOf((*q.Type)(nil)).Elem(), 32 }, 33 NamedTypes: map[string]gossa.NamedType{ 34 "ChanDir": {reflect.TypeOf((*q.ChanDir)(nil)).Elem(), "String", ""}, 35 "Kind": {reflect.TypeOf((*q.Kind)(nil)).Elem(), "String", ""}, 36 "MapIter": {reflect.TypeOf((*q.MapIter)(nil)).Elem(), "", "Key,Next,Value"}, 37 "Method": {reflect.TypeOf((*q.Method)(nil)).Elem(), "", ""}, 38 "SelectCase": {reflect.TypeOf((*q.SelectCase)(nil)).Elem(), "", ""}, 39 "SelectDir": {reflect.TypeOf((*q.SelectDir)(nil)).Elem(), "", ""}, 40 "SliceHeader": {reflect.TypeOf((*q.SliceHeader)(nil)).Elem(), "", ""}, 41 "StringHeader": {reflect.TypeOf((*q.StringHeader)(nil)).Elem(), "", ""}, 42 "StructField": {reflect.TypeOf((*q.StructField)(nil)).Elem(), "", ""}, 43 "StructTag": {reflect.TypeOf((*q.StructTag)(nil)).Elem(), "Get,Lookup", ""}, 44 "Value": {reflect.TypeOf((*q.Value)(nil)).Elem(), "Addr,Bool,Bytes,Call,CallSlice,CanAddr,CanInterface,CanSet,Cap,Close,Complex,Convert,Elem,Field,FieldByIndex,FieldByName,FieldByNameFunc,Float,Index,Int,Interface,InterfaceData,IsNil,IsValid,IsZero,Kind,Len,MapIndex,MapKeys,MapRange,Method,MethodByName,NumField,NumMethod,OverflowComplex,OverflowFloat,OverflowInt,OverflowUint,Pointer,Recv,Send,Set,SetBool,SetBytes,SetCap,SetComplex,SetFloat,SetInt,SetLen,SetMapIndex,SetPointer,SetString,SetUint,Slice,Slice3,String,TryRecv,TrySend,Type,Uint,UnsafeAddr,assignTo,call,pointer,recv,runes,send,setRunes", ""}, 45 "ValueError": {reflect.TypeOf((*q.ValueError)(nil)).Elem(), "", "Error"}, 46 }, 47 AliasTypes: map[string]reflect.Type{}, 48 Vars: map[string]reflect.Value{}, 49 Funcs: map[string]reflect.Value{ 50 "Append": reflect.ValueOf(q.Append), 51 "AppendSlice": reflect.ValueOf(q.AppendSlice), 52 "ArrayOf": reflect.ValueOf(q.ArrayOf), 53 "ChanOf": reflect.ValueOf(q.ChanOf), 54 "Copy": reflect.ValueOf(q.Copy), 55 "DeepEqual": reflect.ValueOf(q.DeepEqual), 56 "FuncOf": reflect.ValueOf(q.FuncOf), 57 "Indirect": reflect.ValueOf(q.Indirect), 58 "MakeChan": reflect.ValueOf(q.MakeChan), 59 "MakeFunc": reflect.ValueOf(q.MakeFunc), 60 "MakeMap": reflect.ValueOf(q.MakeMap), 61 "MakeMapWithSize": reflect.ValueOf(q.MakeMapWithSize), 62 "MakeSlice": reflect.ValueOf(q.MakeSlice), 63 "MapOf": reflect.ValueOf(q.MapOf), 64 "New": reflect.ValueOf(q.New), 65 "NewAt": reflect.ValueOf(q.NewAt), 66 "PtrTo": reflect.ValueOf(q.PtrTo), 67 "Select": reflect.ValueOf(q.Select), 68 "SliceOf": reflect.ValueOf(q.SliceOf), 69 "StructOf": reflect.ValueOf(q.StructOf), 70 "Swapper": reflect.ValueOf(q.Swapper), 71 "TypeOf": reflect.ValueOf(q.TypeOf), 72 "ValueOf": reflect.ValueOf(q.ValueOf), 73 "Zero": reflect.ValueOf(q.Zero), 74 }, 75 TypedConsts: map[string]gossa.TypedConst{ 76 "Array": {reflect.TypeOf(q.Array), constant.MakeInt64(int64(q.Array))}, 77 "Bool": {reflect.TypeOf(q.Bool), constant.MakeInt64(int64(q.Bool))}, 78 "BothDir": {reflect.TypeOf(q.BothDir), constant.MakeInt64(int64(q.BothDir))}, 79 "Chan": {reflect.TypeOf(q.Chan), constant.MakeInt64(int64(q.Chan))}, 80 "Complex128": {reflect.TypeOf(q.Complex128), constant.MakeInt64(int64(q.Complex128))}, 81 "Complex64": {reflect.TypeOf(q.Complex64), constant.MakeInt64(int64(q.Complex64))}, 82 "Float32": {reflect.TypeOf(q.Float32), constant.MakeInt64(int64(q.Float32))}, 83 "Float64": {reflect.TypeOf(q.Float64), constant.MakeInt64(int64(q.Float64))}, 84 "Func": {reflect.TypeOf(q.Func), constant.MakeInt64(int64(q.Func))}, 85 "Int": {reflect.TypeOf(q.Int), constant.MakeInt64(int64(q.Int))}, 86 "Int16": {reflect.TypeOf(q.Int16), constant.MakeInt64(int64(q.Int16))}, 87 "Int32": {reflect.TypeOf(q.Int32), constant.MakeInt64(int64(q.Int32))}, 88 "Int64": {reflect.TypeOf(q.Int64), constant.MakeInt64(int64(q.Int64))}, 89 "Int8": {reflect.TypeOf(q.Int8), constant.MakeInt64(int64(q.Int8))}, 90 "Interface": {reflect.TypeOf(q.Interface), constant.MakeInt64(int64(q.Interface))}, 91 "Invalid": {reflect.TypeOf(q.Invalid), constant.MakeInt64(int64(q.Invalid))}, 92 "Map": {reflect.TypeOf(q.Map), constant.MakeInt64(int64(q.Map))}, 93 "Ptr": {reflect.TypeOf(q.Ptr), constant.MakeInt64(int64(q.Ptr))}, 94 "RecvDir": {reflect.TypeOf(q.RecvDir), constant.MakeInt64(int64(q.RecvDir))}, 95 "SelectDefault": {reflect.TypeOf(q.SelectDefault), constant.MakeInt64(int64(q.SelectDefault))}, 96 "SelectRecv": {reflect.TypeOf(q.SelectRecv), constant.MakeInt64(int64(q.SelectRecv))}, 97 "SelectSend": {reflect.TypeOf(q.SelectSend), constant.MakeInt64(int64(q.SelectSend))}, 98 "SendDir": {reflect.TypeOf(q.SendDir), constant.MakeInt64(int64(q.SendDir))}, 99 "Slice": {reflect.TypeOf(q.Slice), constant.MakeInt64(int64(q.Slice))}, 100 "String": {reflect.TypeOf(q.String), constant.MakeInt64(int64(q.String))}, 101 "Struct": {reflect.TypeOf(q.Struct), constant.MakeInt64(int64(q.Struct))}, 102 "Uint": {reflect.TypeOf(q.Uint), constant.MakeInt64(int64(q.Uint))}, 103 "Uint16": {reflect.TypeOf(q.Uint16), constant.MakeInt64(int64(q.Uint16))}, 104 "Uint32": {reflect.TypeOf(q.Uint32), constant.MakeInt64(int64(q.Uint32))}, 105 "Uint64": {reflect.TypeOf(q.Uint64), constant.MakeInt64(int64(q.Uint64))}, 106 "Uint8": {reflect.TypeOf(q.Uint8), constant.MakeInt64(int64(q.Uint8))}, 107 "Uintptr": {reflect.TypeOf(q.Uintptr), constant.MakeInt64(int64(q.Uintptr))}, 108 "UnsafePointer": {reflect.TypeOf(q.UnsafePointer), constant.MakeInt64(int64(q.UnsafePointer))}, 109 }, 110 UntypedConsts: map[string]gossa.UntypedConst{}, 111 }) 112 }