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

     1  // Code generated by 'yaegi extract go/types'. DO NOT EDIT.
     2  
     3  //go:build go1.20
     4  // +build 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  		"Satisfies":               reflect.ValueOf(types.Satisfies),
    92  		"SelectionString":         reflect.ValueOf(types.SelectionString),
    93  		"SendOnly":                reflect.ValueOf(types.SendOnly),
    94  		"SendRecv":                reflect.ValueOf(types.SendRecv),
    95  		"SizesFor":                reflect.ValueOf(types.SizesFor),
    96  		"String":                  reflect.ValueOf(types.String),
    97  		"Typ":                     reflect.ValueOf(&types.Typ).Elem(),
    98  		"TypeString":              reflect.ValueOf(types.TypeString),
    99  		"Uint":                    reflect.ValueOf(types.Uint),
   100  		"Uint16":                  reflect.ValueOf(types.Uint16),
   101  		"Uint32":                  reflect.ValueOf(types.Uint32),
   102  		"Uint64":                  reflect.ValueOf(types.Uint64),
   103  		"Uint8":                   reflect.ValueOf(types.Uint8),
   104  		"Uintptr":                 reflect.ValueOf(types.Uintptr),
   105  		"Universe":                reflect.ValueOf(&types.Universe).Elem(),
   106  		"Unsafe":                  reflect.ValueOf(&types.Unsafe).Elem(),
   107  		"UnsafePointer":           reflect.ValueOf(types.UnsafePointer),
   108  		"UntypedBool":             reflect.ValueOf(types.UntypedBool),
   109  		"UntypedComplex":          reflect.ValueOf(types.UntypedComplex),
   110  		"UntypedFloat":            reflect.ValueOf(types.UntypedFloat),
   111  		"UntypedInt":              reflect.ValueOf(types.UntypedInt),
   112  		"UntypedNil":              reflect.ValueOf(types.UntypedNil),
   113  		"UntypedRune":             reflect.ValueOf(types.UntypedRune),
   114  		"UntypedString":           reflect.ValueOf(types.UntypedString),
   115  		"WriteExpr":               reflect.ValueOf(types.WriteExpr),
   116  		"WriteSignature":          reflect.ValueOf(types.WriteSignature),
   117  		"WriteType":               reflect.ValueOf(types.WriteType),
   118  
   119  		// type definitions
   120  		"ArgumentError": reflect.ValueOf((*types.ArgumentError)(nil)),
   121  		"Array":         reflect.ValueOf((*types.Array)(nil)),
   122  		"Basic":         reflect.ValueOf((*types.Basic)(nil)),
   123  		"BasicInfo":     reflect.ValueOf((*types.BasicInfo)(nil)),
   124  		"BasicKind":     reflect.ValueOf((*types.BasicKind)(nil)),
   125  		"Builtin":       reflect.ValueOf((*types.Builtin)(nil)),
   126  		"Chan":          reflect.ValueOf((*types.Chan)(nil)),
   127  		"ChanDir":       reflect.ValueOf((*types.ChanDir)(nil)),
   128  		"Checker":       reflect.ValueOf((*types.Checker)(nil)),
   129  		"Config":        reflect.ValueOf((*types.Config)(nil)),
   130  		"Const":         reflect.ValueOf((*types.Const)(nil)),
   131  		"Context":       reflect.ValueOf((*types.Context)(nil)),
   132  		"Error":         reflect.ValueOf((*types.Error)(nil)),
   133  		"Func":          reflect.ValueOf((*types.Func)(nil)),
   134  		"ImportMode":    reflect.ValueOf((*types.ImportMode)(nil)),
   135  		"Importer":      reflect.ValueOf((*types.Importer)(nil)),
   136  		"ImporterFrom":  reflect.ValueOf((*types.ImporterFrom)(nil)),
   137  		"Info":          reflect.ValueOf((*types.Info)(nil)),
   138  		"Initializer":   reflect.ValueOf((*types.Initializer)(nil)),
   139  		"Instance":      reflect.ValueOf((*types.Instance)(nil)),
   140  		"Interface":     reflect.ValueOf((*types.Interface)(nil)),
   141  		"Label":         reflect.ValueOf((*types.Label)(nil)),
   142  		"Map":           reflect.ValueOf((*types.Map)(nil)),
   143  		"MethodSet":     reflect.ValueOf((*types.MethodSet)(nil)),
   144  		"Named":         reflect.ValueOf((*types.Named)(nil)),
   145  		"Nil":           reflect.ValueOf((*types.Nil)(nil)),
   146  		"Object":        reflect.ValueOf((*types.Object)(nil)),
   147  		"Package":       reflect.ValueOf((*types.Package)(nil)),
   148  		"PkgName":       reflect.ValueOf((*types.PkgName)(nil)),
   149  		"Pointer":       reflect.ValueOf((*types.Pointer)(nil)),
   150  		"Qualifier":     reflect.ValueOf((*types.Qualifier)(nil)),
   151  		"Scope":         reflect.ValueOf((*types.Scope)(nil)),
   152  		"Selection":     reflect.ValueOf((*types.Selection)(nil)),
   153  		"SelectionKind": reflect.ValueOf((*types.SelectionKind)(nil)),
   154  		"Signature":     reflect.ValueOf((*types.Signature)(nil)),
   155  		"Sizes":         reflect.ValueOf((*types.Sizes)(nil)),
   156  		"Slice":         reflect.ValueOf((*types.Slice)(nil)),
   157  		"StdSizes":      reflect.ValueOf((*types.StdSizes)(nil)),
   158  		"Struct":        reflect.ValueOf((*types.Struct)(nil)),
   159  		"Term":          reflect.ValueOf((*types.Term)(nil)),
   160  		"Tuple":         reflect.ValueOf((*types.Tuple)(nil)),
   161  		"Type":          reflect.ValueOf((*types.Type)(nil)),
   162  		"TypeAndValue":  reflect.ValueOf((*types.TypeAndValue)(nil)),
   163  		"TypeList":      reflect.ValueOf((*types.TypeList)(nil)),
   164  		"TypeName":      reflect.ValueOf((*types.TypeName)(nil)),
   165  		"TypeParam":     reflect.ValueOf((*types.TypeParam)(nil)),
   166  		"TypeParamList": reflect.ValueOf((*types.TypeParamList)(nil)),
   167  		"Union":         reflect.ValueOf((*types.Union)(nil)),
   168  		"Var":           reflect.ValueOf((*types.Var)(nil)),
   169  
   170  		// interface wrapper definitions
   171  		"_Importer":     reflect.ValueOf((*_go_types_Importer)(nil)),
   172  		"_ImporterFrom": reflect.ValueOf((*_go_types_ImporterFrom)(nil)),
   173  		"_Object":       reflect.ValueOf((*_go_types_Object)(nil)),
   174  		"_Sizes":        reflect.ValueOf((*_go_types_Sizes)(nil)),
   175  		"_Type":         reflect.ValueOf((*_go_types_Type)(nil)),
   176  	}
   177  }
   178  
   179  // _go_types_Importer is an interface wrapper for Importer type
   180  type _go_types_Importer struct {
   181  	IValue  interface{}
   182  	WImport func(path string) (*types.Package, error)
   183  }
   184  
   185  func (W _go_types_Importer) Import(path string) (*types.Package, error) {
   186  	return W.WImport(path)
   187  }
   188  
   189  // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type
   190  type _go_types_ImporterFrom struct {
   191  	IValue      interface{}
   192  	WImport     func(path string) (*types.Package, error)
   193  	WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error)
   194  }
   195  
   196  func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) {
   197  	return W.WImport(path)
   198  }
   199  func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.ImportMode) (*types.Package, error) {
   200  	return W.WImportFrom(path, dir, mode)
   201  }
   202  
   203  // _go_types_Object is an interface wrapper for Object type
   204  type _go_types_Object struct {
   205  	IValue    interface{}
   206  	WExported func() bool
   207  	WId       func() string
   208  	WName     func() string
   209  	WParent   func() *types.Scope
   210  	WPkg      func() *types.Package
   211  	WPos      func() token.Pos
   212  	WString   func() string
   213  	WType     func() types.Type
   214  }
   215  
   216  func (W _go_types_Object) Exported() bool {
   217  	return W.WExported()
   218  }
   219  func (W _go_types_Object) Id() string {
   220  	return W.WId()
   221  }
   222  func (W _go_types_Object) Name() string {
   223  	return W.WName()
   224  }
   225  func (W _go_types_Object) Parent() *types.Scope {
   226  	return W.WParent()
   227  }
   228  func (W _go_types_Object) Pkg() *types.Package {
   229  	return W.WPkg()
   230  }
   231  func (W _go_types_Object) Pos() token.Pos {
   232  	return W.WPos()
   233  }
   234  func (W _go_types_Object) String() string {
   235  	if W.WString == nil {
   236  		return ""
   237  	}
   238  	return W.WString()
   239  }
   240  func (W _go_types_Object) Type() types.Type {
   241  	return W.WType()
   242  }
   243  
   244  // _go_types_Sizes is an interface wrapper for Sizes type
   245  type _go_types_Sizes struct {
   246  	IValue     interface{}
   247  	WAlignof   func(T types.Type) int64
   248  	WOffsetsof func(fields []*types.Var) []int64
   249  	WSizeof    func(T types.Type) int64
   250  }
   251  
   252  func (W _go_types_Sizes) Alignof(T types.Type) int64 {
   253  	return W.WAlignof(T)
   254  }
   255  func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 {
   256  	return W.WOffsetsof(fields)
   257  }
   258  func (W _go_types_Sizes) Sizeof(T types.Type) int64 {
   259  	return W.WSizeof(T)
   260  }
   261  
   262  // _go_types_Type is an interface wrapper for Type type
   263  type _go_types_Type struct {
   264  	IValue      interface{}
   265  	WString     func() string
   266  	WUnderlying func() types.Type
   267  }
   268  
   269  func (W _go_types_Type) String() string {
   270  	if W.WString == nil {
   271  		return ""
   272  	}
   273  	return W.WString()
   274  }
   275  func (W _go_types_Type) Underlying() types.Type {
   276  	return W.WUnderlying()
   277  }