| 1 | // Code generated by 'yaegi extract go/types'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 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 | "NewAlias": reflect.ValueOf(types.NewAlias), |
| 60 | "NewArray": reflect.ValueOf(types.NewArray), |
| 61 | "NewChan": reflect.ValueOf(types.NewChan), |
| 62 | "NewChecker": reflect.ValueOf(types.NewChecker), |
| 63 | "NewConst": reflect.ValueOf(types.NewConst), |
| 64 | "NewContext": reflect.ValueOf(types.NewContext), |
| 65 | "NewField": reflect.ValueOf(types.NewField), |
| 66 | "NewFunc": reflect.ValueOf(types.NewFunc), |
| 67 | "NewInterface": reflect.ValueOf(types.NewInterface), |
| 68 | "NewInterfaceType": reflect.ValueOf(types.NewInterfaceType), |
| 69 | "NewLabel": reflect.ValueOf(types.NewLabel), |
| 70 | "NewMap": reflect.ValueOf(types.NewMap), |
| 71 | "NewMethodSet": reflect.ValueOf(types.NewMethodSet), |
| 72 | "NewNamed": reflect.ValueOf(types.NewNamed), |
| 73 | "NewPackage": reflect.ValueOf(types.NewPackage), |
| 74 | "NewParam": reflect.ValueOf(types.NewParam), |
| 75 | "NewPkgName": reflect.ValueOf(types.NewPkgName), |
| 76 | "NewPointer": reflect.ValueOf(types.NewPointer), |
| 77 | "NewScope": reflect.ValueOf(types.NewScope), |
| 78 | "NewSignature": reflect.ValueOf(types.NewSignature), |
| 79 | "NewSignatureType": reflect.ValueOf(types.NewSignatureType), |
| 80 | "NewSlice": reflect.ValueOf(types.NewSlice), |
| 81 | "NewStruct": reflect.ValueOf(types.NewStruct), |
| 82 | "NewTerm": reflect.ValueOf(types.NewTerm), |
| 83 | "NewTuple": reflect.ValueOf(types.NewTuple), |
| 84 | "NewTypeName": reflect.ValueOf(types.NewTypeName), |
| 85 | "NewTypeParam": reflect.ValueOf(types.NewTypeParam), |
| 86 | "NewUnion": reflect.ValueOf(types.NewUnion), |
| 87 | "NewVar": reflect.ValueOf(types.NewVar), |
| 88 | "ObjectString": reflect.ValueOf(types.ObjectString), |
| 89 | "RecvOnly": reflect.ValueOf(types.RecvOnly), |
| 90 | "RelativeTo": reflect.ValueOf(types.RelativeTo), |
| 91 | "Rune": reflect.ValueOf(types.Rune), |
| 92 | "Satisfies": reflect.ValueOf(types.Satisfies), |
| 93 | "SelectionString": reflect.ValueOf(types.SelectionString), |
| 94 | "SendOnly": reflect.ValueOf(types.SendOnly), |
| 95 | "SendRecv": reflect.ValueOf(types.SendRecv), |
| 96 | "SizesFor": reflect.ValueOf(types.SizesFor), |
| 97 | "String": reflect.ValueOf(types.String), |
| 98 | "Typ": reflect.ValueOf(&types.Typ).Elem(), |
| 99 | "TypeString": reflect.ValueOf(types.TypeString), |
| 100 | "Uint": reflect.ValueOf(types.Uint), |
| 101 | "Uint16": reflect.ValueOf(types.Uint16), |
| 102 | "Uint32": reflect.ValueOf(types.Uint32), |
| 103 | "Uint64": reflect.ValueOf(types.Uint64), |
| 104 | "Uint8": reflect.ValueOf(types.Uint8), |
| 105 | "Uintptr": reflect.ValueOf(types.Uintptr), |
| 106 | "Unalias": reflect.ValueOf(types.Unalias), |
| 107 | "Universe": reflect.ValueOf(&types.Universe).Elem(), |
| 108 | "Unsafe": reflect.ValueOf(&types.Unsafe).Elem(), |
| 109 | "UnsafePointer": reflect.ValueOf(types.UnsafePointer), |
| 110 | "UntypedBool": reflect.ValueOf(types.UntypedBool), |
| 111 | "UntypedComplex": reflect.ValueOf(types.UntypedComplex), |
| 112 | "UntypedFloat": reflect.ValueOf(types.UntypedFloat), |
| 113 | "UntypedInt": reflect.ValueOf(types.UntypedInt), |
| 114 | "UntypedNil": reflect.ValueOf(types.UntypedNil), |
| 115 | "UntypedRune": reflect.ValueOf(types.UntypedRune), |
| 116 | "UntypedString": reflect.ValueOf(types.UntypedString), |
| 117 | "WriteExpr": reflect.ValueOf(types.WriteExpr), |
| 118 | "WriteSignature": reflect.ValueOf(types.WriteSignature), |
| 119 | "WriteType": reflect.ValueOf(types.WriteType), |
| 120 | |
| 121 | // type definitions |
| 122 | "Alias": reflect.ValueOf((*types.Alias)(nil)), |
| 123 | "ArgumentError": reflect.ValueOf((*types.ArgumentError)(nil)), |
| 124 | "Array": reflect.ValueOf((*types.Array)(nil)), |
| 125 | "Basic": reflect.ValueOf((*types.Basic)(nil)), |
| 126 | "BasicInfo": reflect.ValueOf((*types.BasicInfo)(nil)), |
| 127 | "BasicKind": reflect.ValueOf((*types.BasicKind)(nil)), |
| 128 | "Builtin": reflect.ValueOf((*types.Builtin)(nil)), |
| 129 | "Chan": reflect.ValueOf((*types.Chan)(nil)), |
| 130 | "ChanDir": reflect.ValueOf((*types.ChanDir)(nil)), |
| 131 | "Checker": reflect.ValueOf((*types.Checker)(nil)), |
| 132 | "Config": reflect.ValueOf((*types.Config)(nil)), |
| 133 | "Const": reflect.ValueOf((*types.Const)(nil)), |
| 134 | "Context": reflect.ValueOf((*types.Context)(nil)), |
| 135 | "Error": reflect.ValueOf((*types.Error)(nil)), |
| 136 | "Func": reflect.ValueOf((*types.Func)(nil)), |
| 137 | "ImportMode": reflect.ValueOf((*types.ImportMode)(nil)), |
| 138 | "Importer": reflect.ValueOf((*types.Importer)(nil)), |
| 139 | "ImporterFrom": reflect.ValueOf((*types.ImporterFrom)(nil)), |
| 140 | "Info": reflect.ValueOf((*types.Info)(nil)), |
| 141 | "Initializer": reflect.ValueOf((*types.Initializer)(nil)), |
| 142 | "Instance": reflect.ValueOf((*types.Instance)(nil)), |
| 143 | "Interface": reflect.ValueOf((*types.Interface)(nil)), |
| 144 | "Label": reflect.ValueOf((*types.Label)(nil)), |
| 145 | "Map": reflect.ValueOf((*types.Map)(nil)), |
| 146 | "MethodSet": reflect.ValueOf((*types.MethodSet)(nil)), |
| 147 | "Named": reflect.ValueOf((*types.Named)(nil)), |
| 148 | "Nil": reflect.ValueOf((*types.Nil)(nil)), |
| 149 | "Object": reflect.ValueOf((*types.Object)(nil)), |
| 150 | "Package": reflect.ValueOf((*types.Package)(nil)), |
| 151 | "PkgName": reflect.ValueOf((*types.PkgName)(nil)), |
| 152 | "Pointer": reflect.ValueOf((*types.Pointer)(nil)), |
| 153 | "Qualifier": reflect.ValueOf((*types.Qualifier)(nil)), |
| 154 | "Scope": reflect.ValueOf((*types.Scope)(nil)), |
| 155 | "Selection": reflect.ValueOf((*types.Selection)(nil)), |
| 156 | "SelectionKind": reflect.ValueOf((*types.SelectionKind)(nil)), |
| 157 | "Signature": reflect.ValueOf((*types.Signature)(nil)), |
| 158 | "Sizes": reflect.ValueOf((*types.Sizes)(nil)), |
| 159 | "Slice": reflect.ValueOf((*types.Slice)(nil)), |
| 160 | "StdSizes": reflect.ValueOf((*types.StdSizes)(nil)), |
| 161 | "Struct": reflect.ValueOf((*types.Struct)(nil)), |
| 162 | "Term": reflect.ValueOf((*types.Term)(nil)), |
| 163 | "Tuple": reflect.ValueOf((*types.Tuple)(nil)), |
| 164 | "Type": reflect.ValueOf((*types.Type)(nil)), |
| 165 | "TypeAndValue": reflect.ValueOf((*types.TypeAndValue)(nil)), |
| 166 | "TypeList": reflect.ValueOf((*types.TypeList)(nil)), |
| 167 | "TypeName": reflect.ValueOf((*types.TypeName)(nil)), |
| 168 | "TypeParam": reflect.ValueOf((*types.TypeParam)(nil)), |
| 169 | "TypeParamList": reflect.ValueOf((*types.TypeParamList)(nil)), |
| 170 | "Union": reflect.ValueOf((*types.Union)(nil)), |
| 171 | "Var": reflect.ValueOf((*types.Var)(nil)), |
| 172 | |
| 173 | // interface wrapper definitions |
| 174 | "_Importer": reflect.ValueOf((*_go_types_Importer)(nil)), |
| 175 | "_ImporterFrom": reflect.ValueOf((*_go_types_ImporterFrom)(nil)), |
| 176 | "_Object": reflect.ValueOf((*_go_types_Object)(nil)), |
| 177 | "_Sizes": reflect.ValueOf((*_go_types_Sizes)(nil)), |
| 178 | "_Type": reflect.ValueOf((*_go_types_Type)(nil)), |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // _go_types_Importer is an interface wrapper for Importer type |
| 183 | type _go_types_Importer struct { |
| 184 | IValue interface{} |
| 185 | WImport func(path string) (*types.Package, error) |
| 186 | } |
| 187 | |
| 188 | func (W _go_types_Importer) Import(path string) (*types.Package, error) { return W.WImport(path) } |
| 189 | |
| 190 | // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type |
| 191 | type _go_types_ImporterFrom struct { |
| 192 | IValue interface{} |
| 193 | WImport func(path string) (*types.Package, error) |
| 194 | WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error) |
| 195 | } |
| 196 | |
| 197 | func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) { return W.WImport(path) } |
| 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 { return W.WExported() } |
| 216 | func (W _go_types_Object) Id() string { return W.WId() } |
| 217 | func (W _go_types_Object) Name() string { return W.WName() } |
| 218 | func (W _go_types_Object) Parent() *types.Scope { return W.WParent() } |
| 219 | func (W _go_types_Object) Pkg() *types.Package { return W.WPkg() } |
| 220 | func (W _go_types_Object) Pos() token.Pos { return W.WPos() } |
| 221 | func (W _go_types_Object) String() string { |
| 222 | if W.WString == nil { |
| 223 | return "" |
| 224 | } |
| 225 | return W.WString() |
| 226 | } |
| 227 | func (W _go_types_Object) Type() types.Type { return W.WType() } |
| 228 | |
| 229 | // _go_types_Sizes is an interface wrapper for Sizes type |
| 230 | type _go_types_Sizes struct { |
| 231 | IValue interface{} |
| 232 | WAlignof func(T types.Type) int64 |
| 233 | WOffsetsof func(fields []*types.Var) []int64 |
| 234 | WSizeof func(T types.Type) int64 |
| 235 | } |
| 236 | |
| 237 | func (W _go_types_Sizes) Alignof(T types.Type) int64 { return W.WAlignof(T) } |
| 238 | func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 { return W.WOffsetsof(fields) } |
| 239 | func (W _go_types_Sizes) Sizeof(T types.Type) int64 { return W.WSizeof(T) } |
| 240 | |
| 241 | // _go_types_Type is an interface wrapper for Type type |
| 242 | type _go_types_Type struct { |
| 243 | IValue interface{} |
| 244 | WString func() string |
| 245 | WUnderlying func() types.Type |
| 246 | } |
| 247 | |
| 248 | func (W _go_types_Type) String() string { |
| 249 | if W.WString == nil { |
| 250 | return "" |
| 251 | } |
| 252 | return W.WString() |
| 253 | } |
| 254 | func (W _go_types_Type) Underlying() types.Type { return W.WUnderlying() } |