github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_reflect.go (about)

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