Debian Codegraph @

stdlib/go1_21_go_types.go

raw symbols SCIP
1 // Code generated by 'yaegi extract go/types'. DO NOT EDIT.
2
3 //go:build go1.21 && !go1.22
4 // +build go1.21,!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 "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) { return W.WImport(path) }
186
187 // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type
188 type _go_types_ImporterFrom struct {
189 IValue interface{}
190 WImport func(path string) (*types.Package, error)
191 WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error)
192 }
193
194 func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) { return W.WImport(path) }
195 func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.ImportMode) (*types.Package, error) {
196 return W.WImportFrom(path, dir, mode)
197 }
198
199 // _go_types_Object is an interface wrapper for Object type
200 type _go_types_Object struct {
201 IValue interface{}
202 WExported func() bool
203 WId func() string
204 WName func() string
205 WParent func() *types.Scope
206 WPkg func() *types.Package
207 WPos func() token.Pos
208 WString func() string
209 WType func() types.Type
210 }
211
212 func (W _go_types_Object) Exported() bool { return W.WExported() }
213 func (W _go_types_Object) Id() string { return W.WId() }
214 func (W _go_types_Object) Name() string { return W.WName() }
215 func (W _go_types_Object) Parent() *types.Scope { return W.WParent() }
216 func (W _go_types_Object) Pkg() *types.Package { return W.WPkg() }
217 func (W _go_types_Object) Pos() token.Pos { return W.WPos() }
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 { return W.WType() }
225
226 // _go_types_Sizes is an interface wrapper for Sizes type
227 type _go_types_Sizes struct {
228 IValue interface{}
229 WAlignof func(T types.Type) int64
230 WOffsetsof func(fields []*types.Var) []int64
231 WSizeof func(T types.Type) int64
232 }
233
234 func (W _go_types_Sizes) Alignof(T types.Type) int64 { return W.WAlignof(T) }
235 func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 { return W.WOffsetsof(fields) }
236 func (W _go_types_Sizes) Sizeof(T types.Type) int64 { return W.WSizeof(T) }
237
238 // _go_types_Type is an interface wrapper for Type type
239 type _go_types_Type struct {
240 IValue interface{}
241 WString func() string
242 WUnderlying func() types.Type
243 }
244
245 func (W _go_types_Type) String() string {
246 if W.WString == nil {
247 return ""
248 }
249 return W.WString()
250 }
251 func (W _go_types_Type) Underlying() types.Type { return W.WUnderlying() }