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