github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_16_go_types.go (about)

     1  // Code generated by 'yaegi extract go/types'. DO NOT EDIT.
     2  
     3  // +build go1.16,!go1.17
     4  
     5  package stdlib
     6  
     7  import (
     8  	"go/token"
     9  	"go/types"
    10  	"reflect"
    11  )
    12  
    13  func init() {
    14  	Symbols["go/types/types"] = map[string]reflect.Value{
    15  		// function, constant and variable definitions
    16  		"AssertableTo":            reflect.ValueOf(types.AssertableTo),
    17  		"AssignableTo":            reflect.ValueOf(types.AssignableTo),
    18  		"Bool":                    reflect.ValueOf(types.Bool),
    19  		"Byte":                    reflect.ValueOf(types.Byte),
    20  		"CheckExpr":               reflect.ValueOf(types.CheckExpr),
    21  		"Comparable":              reflect.ValueOf(types.Comparable),
    22  		"Complex128":              reflect.ValueOf(types.Complex128),
    23  		"Complex64":               reflect.ValueOf(types.Complex64),
    24  		"ConvertibleTo":           reflect.ValueOf(types.ConvertibleTo),
    25  		"DefPredeclaredTestFuncs": reflect.ValueOf(types.DefPredeclaredTestFuncs),
    26  		"Default":                 reflect.ValueOf(types.Default),
    27  		"Eval":                    reflect.ValueOf(types.Eval),
    28  		"ExprString":              reflect.ValueOf(types.ExprString),
    29  		"FieldVal":                reflect.ValueOf(types.FieldVal),
    30  		"Float32":                 reflect.ValueOf(types.Float32),
    31  		"Float64":                 reflect.ValueOf(types.Float64),
    32  		"Id":                      reflect.ValueOf(types.Id),
    33  		"Identical":               reflect.ValueOf(types.Identical),
    34  		"IdenticalIgnoreTags":     reflect.ValueOf(types.IdenticalIgnoreTags),
    35  		"Implements":              reflect.ValueOf(types.Implements),
    36  		"Int":                     reflect.ValueOf(types.Int),
    37  		"Int16":                   reflect.ValueOf(types.Int16),
    38  		"Int32":                   reflect.ValueOf(types.Int32),
    39  		"Int64":                   reflect.ValueOf(types.Int64),
    40  		"Int8":                    reflect.ValueOf(types.Int8),
    41  		"Invalid":                 reflect.ValueOf(types.Invalid),
    42  		"IsBoolean":               reflect.ValueOf(types.IsBoolean),
    43  		"IsComplex":               reflect.ValueOf(types.IsComplex),
    44  		"IsConstType":             reflect.ValueOf(types.IsConstType),
    45  		"IsFloat":                 reflect.ValueOf(types.IsFloat),
    46  		"IsInteger":               reflect.ValueOf(types.IsInteger),
    47  		"IsInterface":             reflect.ValueOf(types.IsInterface),
    48  		"IsNumeric":               reflect.ValueOf(types.IsNumeric),
    49  		"IsOrdered":               reflect.ValueOf(types.IsOrdered),
    50  		"IsString":                reflect.ValueOf(types.IsString),
    51  		"IsUnsigned":              reflect.ValueOf(types.IsUnsigned),
    52  		"IsUntyped":               reflect.ValueOf(types.IsUntyped),
    53  		"LookupFieldOrMethod":     reflect.ValueOf(types.LookupFieldOrMethod),
    54  		"MethodExpr":              reflect.ValueOf(types.MethodExpr),
    55  		"MethodVal":               reflect.ValueOf(types.MethodVal),
    56  		"MissingMethod":           reflect.ValueOf(types.MissingMethod),
    57  		"NewArray":                reflect.ValueOf(types.NewArray),
    58  		"NewChan":                 reflect.ValueOf(types.NewChan),
    59  		"NewChecker":              reflect.ValueOf(types.NewChecker),
    60  		"NewConst":                reflect.ValueOf(types.NewConst),
    61  		"NewField":                reflect.ValueOf(types.NewField),
    62  		"NewFunc":                 reflect.ValueOf(types.NewFunc),
    63  		"NewInterface":            reflect.ValueOf(types.NewInterface),
    64  		"NewInterfaceType":        reflect.ValueOf(types.NewInterfaceType),
    65  		"NewLabel":                reflect.ValueOf(types.NewLabel),
    66  		"NewMap":                  reflect.ValueOf(types.NewMap),
    67  		"NewMethodSet":            reflect.ValueOf(types.NewMethodSet),
    68  		"NewNamed":                reflect.ValueOf(types.NewNamed),
    69  		"NewPackage":              reflect.ValueOf(types.NewPackage),
    70  		"NewParam":                reflect.ValueOf(types.NewParam),
    71  		"NewPkgName":              reflect.ValueOf(types.NewPkgName),
    72  		"NewPointer":              reflect.ValueOf(types.NewPointer),
    73  		"NewScope":                reflect.ValueOf(types.NewScope),
    74  		"NewSignature":            reflect.ValueOf(types.NewSignature),
    75  		"NewSlice":                reflect.ValueOf(types.NewSlice),
    76  		"NewStruct":               reflect.ValueOf(types.NewStruct),
    77  		"NewTuple":                reflect.ValueOf(types.NewTuple),
    78  		"NewTypeName":             reflect.ValueOf(types.NewTypeName),
    79  		"NewVar":                  reflect.ValueOf(types.NewVar),
    80  		"ObjectString":            reflect.ValueOf(types.ObjectString),
    81  		"RecvOnly":                reflect.ValueOf(types.RecvOnly),
    82  		"RelativeTo":              reflect.ValueOf(types.RelativeTo),
    83  		"Rune":                    reflect.ValueOf(types.Rune),
    84  		"SelectionString":         reflect.ValueOf(types.SelectionString),
    85  		"SendOnly":                reflect.ValueOf(types.SendOnly),
    86  		"SendRecv":                reflect.ValueOf(types.SendRecv),
    87  		"SizesFor":                reflect.ValueOf(types.SizesFor),
    88  		"String":                  reflect.ValueOf(types.String),
    89  		"Typ":                     reflect.ValueOf(&types.Typ).Elem(),
    90  		"TypeString":              reflect.ValueOf(types.TypeString),
    91  		"Uint":                    reflect.ValueOf(types.Uint),
    92  		"Uint16":                  reflect.ValueOf(types.Uint16),
    93  		"Uint32":                  reflect.ValueOf(types.Uint32),
    94  		"Uint64":                  reflect.ValueOf(types.Uint64),
    95  		"Uint8":                   reflect.ValueOf(types.Uint8),
    96  		"Uintptr":                 reflect.ValueOf(types.Uintptr),
    97  		"Universe":                reflect.ValueOf(&types.Universe).Elem(),
    98  		"Unsafe":                  reflect.ValueOf(&types.Unsafe).Elem(),
    99  		"UnsafePointer":           reflect.ValueOf(types.UnsafePointer),
   100  		"UntypedBool":             reflect.ValueOf(types.UntypedBool),
   101  		"UntypedComplex":          reflect.ValueOf(types.UntypedComplex),
   102  		"UntypedFloat":            reflect.ValueOf(types.UntypedFloat),
   103  		"UntypedInt":              reflect.ValueOf(types.UntypedInt),
   104  		"UntypedNil":              reflect.ValueOf(types.UntypedNil),
   105  		"UntypedRune":             reflect.ValueOf(types.UntypedRune),
   106  		"UntypedString":           reflect.ValueOf(types.UntypedString),
   107  		"WriteExpr":               reflect.ValueOf(types.WriteExpr),
   108  		"WriteSignature":          reflect.ValueOf(types.WriteSignature),
   109  		"WriteType":               reflect.ValueOf(types.WriteType),
   110  
   111  		// type definitions
   112  		"Array":         reflect.ValueOf((*types.Array)(nil)),
   113  		"Basic":         reflect.ValueOf((*types.Basic)(nil)),
   114  		"BasicInfo":     reflect.ValueOf((*types.BasicInfo)(nil)),
   115  		"BasicKind":     reflect.ValueOf((*types.BasicKind)(nil)),
   116  		"Builtin":       reflect.ValueOf((*types.Builtin)(nil)),
   117  		"Chan":          reflect.ValueOf((*types.Chan)(nil)),
   118  		"ChanDir":       reflect.ValueOf((*types.ChanDir)(nil)),
   119  		"Checker":       reflect.ValueOf((*types.Checker)(nil)),
   120  		"Config":        reflect.ValueOf((*types.Config)(nil)),
   121  		"Const":         reflect.ValueOf((*types.Const)(nil)),
   122  		"Error":         reflect.ValueOf((*types.Error)(nil)),
   123  		"Func":          reflect.ValueOf((*types.Func)(nil)),
   124  		"ImportMode":    reflect.ValueOf((*types.ImportMode)(nil)),
   125  		"Importer":      reflect.ValueOf((*types.Importer)(nil)),
   126  		"ImporterFrom":  reflect.ValueOf((*types.ImporterFrom)(nil)),
   127  		"Info":          reflect.ValueOf((*types.Info)(nil)),
   128  		"Initializer":   reflect.ValueOf((*types.Initializer)(nil)),
   129  		"Interface":     reflect.ValueOf((*types.Interface)(nil)),
   130  		"Label":         reflect.ValueOf((*types.Label)(nil)),
   131  		"Map":           reflect.ValueOf((*types.Map)(nil)),
   132  		"MethodSet":     reflect.ValueOf((*types.MethodSet)(nil)),
   133  		"Named":         reflect.ValueOf((*types.Named)(nil)),
   134  		"Nil":           reflect.ValueOf((*types.Nil)(nil)),
   135  		"Object":        reflect.ValueOf((*types.Object)(nil)),
   136  		"Package":       reflect.ValueOf((*types.Package)(nil)),
   137  		"PkgName":       reflect.ValueOf((*types.PkgName)(nil)),
   138  		"Pointer":       reflect.ValueOf((*types.Pointer)(nil)),
   139  		"Qualifier":     reflect.ValueOf((*types.Qualifier)(nil)),
   140  		"Scope":         reflect.ValueOf((*types.Scope)(nil)),
   141  		"Selection":     reflect.ValueOf((*types.Selection)(nil)),
   142  		"SelectionKind": reflect.ValueOf((*types.SelectionKind)(nil)),
   143  		"Signature":     reflect.ValueOf((*types.Signature)(nil)),
   144  		"Sizes":         reflect.ValueOf((*types.Sizes)(nil)),
   145  		"Slice":         reflect.ValueOf((*types.Slice)(nil)),
   146  		"StdSizes":      reflect.ValueOf((*types.StdSizes)(nil)),
   147  		"Struct":        reflect.ValueOf((*types.Struct)(nil)),
   148  		"Tuple":         reflect.ValueOf((*types.Tuple)(nil)),
   149  		"Type":          reflect.ValueOf((*types.Type)(nil)),
   150  		"TypeAndValue":  reflect.ValueOf((*types.TypeAndValue)(nil)),
   151  		"TypeName":      reflect.ValueOf((*types.TypeName)(nil)),
   152  		"Var":           reflect.ValueOf((*types.Var)(nil)),
   153  
   154  		// interface wrapper definitions
   155  		"_Importer":     reflect.ValueOf((*_go_types_Importer)(nil)),
   156  		"_ImporterFrom": reflect.ValueOf((*_go_types_ImporterFrom)(nil)),
   157  		"_Object":       reflect.ValueOf((*_go_types_Object)(nil)),
   158  		"_Sizes":        reflect.ValueOf((*_go_types_Sizes)(nil)),
   159  		"_Type":         reflect.ValueOf((*_go_types_Type)(nil)),
   160  	}
   161  }
   162  
   163  // _go_types_Importer is an interface wrapper for Importer type
   164  type _go_types_Importer struct {
   165  	IValue  interface{}
   166  	WImport func(path string) (*types.Package, error)
   167  }
   168  
   169  func (W _go_types_Importer) Import(path string) (*types.Package, error) {
   170  	return W.WImport(path)
   171  }
   172  
   173  // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type
   174  type _go_types_ImporterFrom struct {
   175  	IValue      interface{}
   176  	WImport     func(path string) (*types.Package, error)
   177  	WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error)
   178  }
   179  
   180  func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) {
   181  	return W.WImport(path)
   182  }
   183  func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.ImportMode) (*types.Package, error) {
   184  	return W.WImportFrom(path, dir, mode)
   185  }
   186  
   187  // _go_types_Object is an interface wrapper for Object type
   188  type _go_types_Object struct {
   189  	IValue    interface{}
   190  	WExported func() bool
   191  	WId       func() string
   192  	WName     func() string
   193  	WParent   func() *types.Scope
   194  	WPkg      func() *types.Package
   195  	WPos      func() token.Pos
   196  	WString   func() string
   197  	WType     func() types.Type
   198  }
   199  
   200  func (W _go_types_Object) Exported() bool {
   201  	return W.WExported()
   202  }
   203  func (W _go_types_Object) Id() string {
   204  	return W.WId()
   205  }
   206  func (W _go_types_Object) Name() string {
   207  	return W.WName()
   208  }
   209  func (W _go_types_Object) Parent() *types.Scope {
   210  	return W.WParent()
   211  }
   212  func (W _go_types_Object) Pkg() *types.Package {
   213  	return W.WPkg()
   214  }
   215  func (W _go_types_Object) Pos() token.Pos {
   216  	return W.WPos()
   217  }
   218  func (W _go_types_Object) String() string {
   219  	if W.WString == nil {
   220  		return ""
   221  	}
   222  	return W.WString()
   223  }
   224  func (W _go_types_Object) Type() types.Type {
   225  	return W.WType()
   226  }
   227  
   228  // _go_types_Sizes is an interface wrapper for Sizes type
   229  type _go_types_Sizes struct {
   230  	IValue     interface{}
   231  	WAlignof   func(T types.Type) int64
   232  	WOffsetsof func(fields []*types.Var) []int64
   233  	WSizeof    func(T types.Type) int64
   234  }
   235  
   236  func (W _go_types_Sizes) Alignof(T types.Type) int64 {
   237  	return W.WAlignof(T)
   238  }
   239  func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 {
   240  	return W.WOffsetsof(fields)
   241  }
   242  func (W _go_types_Sizes) Sizeof(T types.Type) int64 {
   243  	return W.WSizeof(T)
   244  }
   245  
   246  // _go_types_Type is an interface wrapper for Type type
   247  type _go_types_Type struct {
   248  	IValue      interface{}
   249  	WString     func() string
   250  	WUnderlying func() types.Type
   251  }
   252  
   253  func (W _go_types_Type) String() string {
   254  	if W.WString == nil {
   255  		return ""
   256  	}
   257  	return W.WString()
   258  }
   259  func (W _go_types_Type) Underlying() types.Type {
   260  	return W.WUnderlying()
   261  }