github.com/goplus/gossa@v0.3.25/pkg/reflect/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package reflect
     7  
     8  import (
     9  	q "reflect"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/gossa"
    15  )
    16  
    17  func init() {
    18  	gossa.RegisterPackage(&gossa.Package{
    19  		Name: "reflect",
    20  		Path: "reflect",
    21  		Deps: map[string]string{
    22  			"errors":                "errors",
    23  			"internal/abi":          "abi",
    24  			"internal/bytealg":      "bytealg",
    25  			"internal/goarch":       "goarch",
    26  			"internal/goexperiment": "goexperiment",
    27  			"internal/itoa":         "itoa",
    28  			"internal/unsafeheader": "unsafeheader",
    29  			"math":                  "math",
    30  			"runtime":               "runtime",
    31  			"strconv":               "strconv",
    32  			"sync":                  "sync",
    33  			"unicode":               "unicode",
    34  			"unicode/utf8":          "utf8",
    35  			"unsafe":                "unsafe",
    36  		},
    37  		Interfaces: map[string]reflect.Type{
    38  			"Type": reflect.TypeOf((*q.Type)(nil)).Elem(),
    39  		},
    40  		NamedTypes: map[string]gossa.NamedType{
    41  			"ChanDir":      {reflect.TypeOf((*q.ChanDir)(nil)).Elem(), "String", ""},
    42  			"Kind":         {reflect.TypeOf((*q.Kind)(nil)).Elem(), "String", ""},
    43  			"MapIter":      {reflect.TypeOf((*q.MapIter)(nil)).Elem(), "", "Key,Next,Reset,Value"},
    44  			"Method":       {reflect.TypeOf((*q.Method)(nil)).Elem(), "IsExported", ""},
    45  			"SelectCase":   {reflect.TypeOf((*q.SelectCase)(nil)).Elem(), "", ""},
    46  			"SelectDir":    {reflect.TypeOf((*q.SelectDir)(nil)).Elem(), "", ""},
    47  			"SliceHeader":  {reflect.TypeOf((*q.SliceHeader)(nil)).Elem(), "", ""},
    48  			"StringHeader": {reflect.TypeOf((*q.StringHeader)(nil)).Elem(), "", ""},
    49  			"StructField":  {reflect.TypeOf((*q.StructField)(nil)).Elem(), "IsExported", ""},
    50  			"StructTag":    {reflect.TypeOf((*q.StructTag)(nil)).Elem(), "Get,Lookup", ""},
    51  			"Value":        {reflect.TypeOf((*q.Value)(nil)).Elem(), "Addr,Bool,Bytes,Call,CallSlice,CanAddr,CanComplex,CanConvert,CanFloat,CanInt,CanInterface,CanSet,CanUint,Cap,Close,Complex,Convert,Elem,Field,FieldByIndex,FieldByIndexErr,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,SetIterKey,SetIterValue,SetLen,SetMapIndex,SetPointer,SetString,SetUint,Slice,Slice3,String,TryRecv,TrySend,Type,Uint,UnsafeAddr,UnsafePointer,assignTo,call,pointer,recv,runes,send,setRunes", ""},
    52  			"ValueError":   {reflect.TypeOf((*q.ValueError)(nil)).Elem(), "", "Error"},
    53  		},
    54  		AliasTypes: map[string]reflect.Type{},
    55  		Vars:       map[string]reflect.Value{},
    56  		Funcs: map[string]reflect.Value{
    57  			"Append":          reflect.ValueOf(q.Append),
    58  			"AppendSlice":     reflect.ValueOf(q.AppendSlice),
    59  			"ArrayOf":         reflect.ValueOf(q.ArrayOf),
    60  			"ChanOf":          reflect.ValueOf(q.ChanOf),
    61  			"Copy":            reflect.ValueOf(q.Copy),
    62  			"DeepEqual":       reflect.ValueOf(q.DeepEqual),
    63  			"FuncOf":          reflect.ValueOf(q.FuncOf),
    64  			"Indirect":        reflect.ValueOf(q.Indirect),
    65  			"MakeChan":        reflect.ValueOf(q.MakeChan),
    66  			"MakeFunc":        reflect.ValueOf(q.MakeFunc),
    67  			"MakeMap":         reflect.ValueOf(q.MakeMap),
    68  			"MakeMapWithSize": reflect.ValueOf(q.MakeMapWithSize),
    69  			"MakeSlice":       reflect.ValueOf(q.MakeSlice),
    70  			"MapOf":           reflect.ValueOf(q.MapOf),
    71  			"New":             reflect.ValueOf(q.New),
    72  			"NewAt":           reflect.ValueOf(q.NewAt),
    73  			"PointerTo":       reflect.ValueOf(q.PointerTo),
    74  			"PtrTo":           reflect.ValueOf(q.PtrTo),
    75  			"Select":          reflect.ValueOf(q.Select),
    76  			"SliceOf":         reflect.ValueOf(q.SliceOf),
    77  			"StructOf":        reflect.ValueOf(q.StructOf),
    78  			"Swapper":         reflect.ValueOf(q.Swapper),
    79  			"TypeOf":          reflect.ValueOf(q.TypeOf),
    80  			"ValueOf":         reflect.ValueOf(q.ValueOf),
    81  			"VisibleFields":   reflect.ValueOf(q.VisibleFields),
    82  			"Zero":            reflect.ValueOf(q.Zero),
    83  		},
    84  		TypedConsts: map[string]gossa.TypedConst{
    85  			"Array":         {reflect.TypeOf(q.Array), constant.MakeInt64(int64(q.Array))},
    86  			"Bool":          {reflect.TypeOf(q.Bool), constant.MakeInt64(int64(q.Bool))},
    87  			"BothDir":       {reflect.TypeOf(q.BothDir), constant.MakeInt64(int64(q.BothDir))},
    88  			"Chan":          {reflect.TypeOf(q.Chan), constant.MakeInt64(int64(q.Chan))},
    89  			"Complex128":    {reflect.TypeOf(q.Complex128), constant.MakeInt64(int64(q.Complex128))},
    90  			"Complex64":     {reflect.TypeOf(q.Complex64), constant.MakeInt64(int64(q.Complex64))},
    91  			"Float32":       {reflect.TypeOf(q.Float32), constant.MakeInt64(int64(q.Float32))},
    92  			"Float64":       {reflect.TypeOf(q.Float64), constant.MakeInt64(int64(q.Float64))},
    93  			"Func":          {reflect.TypeOf(q.Func), constant.MakeInt64(int64(q.Func))},
    94  			"Int":           {reflect.TypeOf(q.Int), constant.MakeInt64(int64(q.Int))},
    95  			"Int16":         {reflect.TypeOf(q.Int16), constant.MakeInt64(int64(q.Int16))},
    96  			"Int32":         {reflect.TypeOf(q.Int32), constant.MakeInt64(int64(q.Int32))},
    97  			"Int64":         {reflect.TypeOf(q.Int64), constant.MakeInt64(int64(q.Int64))},
    98  			"Int8":          {reflect.TypeOf(q.Int8), constant.MakeInt64(int64(q.Int8))},
    99  			"Interface":     {reflect.TypeOf(q.Interface), constant.MakeInt64(int64(q.Interface))},
   100  			"Invalid":       {reflect.TypeOf(q.Invalid), constant.MakeInt64(int64(q.Invalid))},
   101  			"Map":           {reflect.TypeOf(q.Map), constant.MakeInt64(int64(q.Map))},
   102  			"Pointer":       {reflect.TypeOf(q.Pointer), constant.MakeInt64(int64(q.Pointer))},
   103  			"Ptr":           {reflect.TypeOf(q.Ptr), constant.MakeInt64(int64(q.Ptr))},
   104  			"RecvDir":       {reflect.TypeOf(q.RecvDir), constant.MakeInt64(int64(q.RecvDir))},
   105  			"SelectDefault": {reflect.TypeOf(q.SelectDefault), constant.MakeInt64(int64(q.SelectDefault))},
   106  			"SelectRecv":    {reflect.TypeOf(q.SelectRecv), constant.MakeInt64(int64(q.SelectRecv))},
   107  			"SelectSend":    {reflect.TypeOf(q.SelectSend), constant.MakeInt64(int64(q.SelectSend))},
   108  			"SendDir":       {reflect.TypeOf(q.SendDir), constant.MakeInt64(int64(q.SendDir))},
   109  			"Slice":         {reflect.TypeOf(q.Slice), constant.MakeInt64(int64(q.Slice))},
   110  			"String":        {reflect.TypeOf(q.String), constant.MakeInt64(int64(q.String))},
   111  			"Struct":        {reflect.TypeOf(q.Struct), constant.MakeInt64(int64(q.Struct))},
   112  			"Uint":          {reflect.TypeOf(q.Uint), constant.MakeInt64(int64(q.Uint))},
   113  			"Uint16":        {reflect.TypeOf(q.Uint16), constant.MakeInt64(int64(q.Uint16))},
   114  			"Uint32":        {reflect.TypeOf(q.Uint32), constant.MakeInt64(int64(q.Uint32))},
   115  			"Uint64":        {reflect.TypeOf(q.Uint64), constant.MakeInt64(int64(q.Uint64))},
   116  			"Uint8":         {reflect.TypeOf(q.Uint8), constant.MakeInt64(int64(q.Uint8))},
   117  			"Uintptr":       {reflect.TypeOf(q.Uintptr), constant.MakeInt64(int64(q.Uintptr))},
   118  			"UnsafePointer": {reflect.TypeOf(q.UnsafePointer), constant.MakeInt64(int64(q.UnsafePointer))},
   119  		},
   120  		UntypedConsts: map[string]gossa.UntypedConst{},
   121  	})
   122  }