github.com/traefik/yaegi@v0.15.1/stdlib/go1_19_go_types.go (about)

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