github.com/goplus/gossa@v0.3.25/pkg/reflect/go114_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.14,!go1.15 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 "math": "math", 22 "runtime": "runtime", 23 "strconv": "strconv", 24 "sync": "sync", 25 "unicode": "unicode", 26 "unicode/utf8": "utf8", 27 "unsafe": "unsafe", 28 }, 29 Interfaces: map[string]reflect.Type{ 30 "Type": reflect.TypeOf((*q.Type)(nil)).Elem(), 31 }, 32 NamedTypes: map[string]gossa.NamedType{ 33 "ChanDir": {reflect.TypeOf((*q.ChanDir)(nil)).Elem(), "String", ""}, 34 "Kind": {reflect.TypeOf((*q.Kind)(nil)).Elem(), "String", ""}, 35 "MapIter": {reflect.TypeOf((*q.MapIter)(nil)).Elem(), "", "Key,Next,Value"}, 36 "Method": {reflect.TypeOf((*q.Method)(nil)).Elem(), "", ""}, 37 "SelectCase": {reflect.TypeOf((*q.SelectCase)(nil)).Elem(), "", ""}, 38 "SelectDir": {reflect.TypeOf((*q.SelectDir)(nil)).Elem(), "", ""}, 39 "SliceHeader": {reflect.TypeOf((*q.SliceHeader)(nil)).Elem(), "", ""}, 40 "StringHeader": {reflect.TypeOf((*q.StringHeader)(nil)).Elem(), "", ""}, 41 "StructField": {reflect.TypeOf((*q.StructField)(nil)).Elem(), "", ""}, 42 "StructTag": {reflect.TypeOf((*q.StructTag)(nil)).Elem(), "Get,Lookup", ""}, 43 "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", ""}, 44 "ValueError": {reflect.TypeOf((*q.ValueError)(nil)).Elem(), "", "Error"}, 45 }, 46 AliasTypes: map[string]reflect.Type{}, 47 Vars: map[string]reflect.Value{}, 48 Funcs: map[string]reflect.Value{ 49 "Append": reflect.ValueOf(q.Append), 50 "AppendSlice": reflect.ValueOf(q.AppendSlice), 51 "ArrayOf": reflect.ValueOf(q.ArrayOf), 52 "ChanOf": reflect.ValueOf(q.ChanOf), 53 "Copy": reflect.ValueOf(q.Copy), 54 "DeepEqual": reflect.ValueOf(q.DeepEqual), 55 "FuncOf": reflect.ValueOf(q.FuncOf), 56 "Indirect": reflect.ValueOf(q.Indirect), 57 "MakeChan": reflect.ValueOf(q.MakeChan), 58 "MakeFunc": reflect.ValueOf(q.MakeFunc), 59 "MakeMap": reflect.ValueOf(q.MakeMap), 60 "MakeMapWithSize": reflect.ValueOf(q.MakeMapWithSize), 61 "MakeSlice": reflect.ValueOf(q.MakeSlice), 62 "MapOf": reflect.ValueOf(q.MapOf), 63 "New": reflect.ValueOf(q.New), 64 "NewAt": reflect.ValueOf(q.NewAt), 65 "PtrTo": reflect.ValueOf(q.PtrTo), 66 "Select": reflect.ValueOf(q.Select), 67 "SliceOf": reflect.ValueOf(q.SliceOf), 68 "StructOf": reflect.ValueOf(q.StructOf), 69 "Swapper": reflect.ValueOf(q.Swapper), 70 "TypeOf": reflect.ValueOf(q.TypeOf), 71 "ValueOf": reflect.ValueOf(q.ValueOf), 72 "Zero": reflect.ValueOf(q.Zero), 73 }, 74 TypedConsts: map[string]gossa.TypedConst{ 75 "Array": {reflect.TypeOf(q.Array), constant.MakeInt64(int64(q.Array))}, 76 "Bool": {reflect.TypeOf(q.Bool), constant.MakeInt64(int64(q.Bool))}, 77 "BothDir": {reflect.TypeOf(q.BothDir), constant.MakeInt64(int64(q.BothDir))}, 78 "Chan": {reflect.TypeOf(q.Chan), constant.MakeInt64(int64(q.Chan))}, 79 "Complex128": {reflect.TypeOf(q.Complex128), constant.MakeInt64(int64(q.Complex128))}, 80 "Complex64": {reflect.TypeOf(q.Complex64), constant.MakeInt64(int64(q.Complex64))}, 81 "Float32": {reflect.TypeOf(q.Float32), constant.MakeInt64(int64(q.Float32))}, 82 "Float64": {reflect.TypeOf(q.Float64), constant.MakeInt64(int64(q.Float64))}, 83 "Func": {reflect.TypeOf(q.Func), constant.MakeInt64(int64(q.Func))}, 84 "Int": {reflect.TypeOf(q.Int), constant.MakeInt64(int64(q.Int))}, 85 "Int16": {reflect.TypeOf(q.Int16), constant.MakeInt64(int64(q.Int16))}, 86 "Int32": {reflect.TypeOf(q.Int32), constant.MakeInt64(int64(q.Int32))}, 87 "Int64": {reflect.TypeOf(q.Int64), constant.MakeInt64(int64(q.Int64))}, 88 "Int8": {reflect.TypeOf(q.Int8), constant.MakeInt64(int64(q.Int8))}, 89 "Interface": {reflect.TypeOf(q.Interface), constant.MakeInt64(int64(q.Interface))}, 90 "Invalid": {reflect.TypeOf(q.Invalid), constant.MakeInt64(int64(q.Invalid))}, 91 "Map": {reflect.TypeOf(q.Map), constant.MakeInt64(int64(q.Map))}, 92 "Ptr": {reflect.TypeOf(q.Ptr), constant.MakeInt64(int64(q.Ptr))}, 93 "RecvDir": {reflect.TypeOf(q.RecvDir), constant.MakeInt64(int64(q.RecvDir))}, 94 "SelectDefault": {reflect.TypeOf(q.SelectDefault), constant.MakeInt64(int64(q.SelectDefault))}, 95 "SelectRecv": {reflect.TypeOf(q.SelectRecv), constant.MakeInt64(int64(q.SelectRecv))}, 96 "SelectSend": {reflect.TypeOf(q.SelectSend), constant.MakeInt64(int64(q.SelectSend))}, 97 "SendDir": {reflect.TypeOf(q.SendDir), constant.MakeInt64(int64(q.SendDir))}, 98 "Slice": {reflect.TypeOf(q.Slice), constant.MakeInt64(int64(q.Slice))}, 99 "String": {reflect.TypeOf(q.String), constant.MakeInt64(int64(q.String))}, 100 "Struct": {reflect.TypeOf(q.Struct), constant.MakeInt64(int64(q.Struct))}, 101 "Uint": {reflect.TypeOf(q.Uint), constant.MakeInt64(int64(q.Uint))}, 102 "Uint16": {reflect.TypeOf(q.Uint16), constant.MakeInt64(int64(q.Uint16))}, 103 "Uint32": {reflect.TypeOf(q.Uint32), constant.MakeInt64(int64(q.Uint32))}, 104 "Uint64": {reflect.TypeOf(q.Uint64), constant.MakeInt64(int64(q.Uint64))}, 105 "Uint8": {reflect.TypeOf(q.Uint8), constant.MakeInt64(int64(q.Uint8))}, 106 "Uintptr": {reflect.TypeOf(q.Uintptr), constant.MakeInt64(int64(q.Uintptr))}, 107 "UnsafePointer": {reflect.TypeOf(q.UnsafePointer), constant.MakeInt64(int64(q.UnsafePointer))}, 108 }, 109 UntypedConsts: map[string]gossa.UntypedConst{}, 110 }) 111 }