/
go121_export.go
executable file
·207 lines (201 loc) · 11.6 KB
/
go121_export.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package types
import (
q "go/types"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "types",
Path: "go/types",
Deps: map[string]string{
"bytes": "bytes",
"container/heap": "heap",
"errors": "errors",
"fmt": "fmt",
"go/ast": "ast",
"go/constant": "constant",
"go/internal/typeparams": "typeparams",
"go/parser": "parser",
"go/token": "token",
"internal/goversion": "goversion",
"internal/types/errors": "errors",
"io": "io",
"math": "math",
"runtime": "runtime",
"sort": "sort",
"strconv": "strconv",
"strings": "strings",
"sync": "sync",
"sync/atomic": "atomic",
"unicode": "unicode",
"unicode/utf8": "utf8",
},
Interfaces: map[string]reflect.Type{
"Importer": reflect.TypeOf((*q.Importer)(nil)).Elem(),
"ImporterFrom": reflect.TypeOf((*q.ImporterFrom)(nil)).Elem(),
"Object": reflect.TypeOf((*q.Object)(nil)).Elem(),
"Sizes": reflect.TypeOf((*q.Sizes)(nil)).Elem(),
"Type": reflect.TypeOf((*q.Type)(nil)).Elem(),
},
NamedTypes: map[string]reflect.Type{
"ArgumentError": reflect.TypeOf((*q.ArgumentError)(nil)).Elem(),
"Array": reflect.TypeOf((*q.Array)(nil)).Elem(),
"Basic": reflect.TypeOf((*q.Basic)(nil)).Elem(),
"BasicInfo": reflect.TypeOf((*q.BasicInfo)(nil)).Elem(),
"BasicKind": reflect.TypeOf((*q.BasicKind)(nil)).Elem(),
"Builtin": reflect.TypeOf((*q.Builtin)(nil)).Elem(),
"Chan": reflect.TypeOf((*q.Chan)(nil)).Elem(),
"ChanDir": reflect.TypeOf((*q.ChanDir)(nil)).Elem(),
"Checker": reflect.TypeOf((*q.Checker)(nil)).Elem(),
"Config": reflect.TypeOf((*q.Config)(nil)).Elem(),
"Const": reflect.TypeOf((*q.Const)(nil)).Elem(),
"Context": reflect.TypeOf((*q.Context)(nil)).Elem(),
"Error": reflect.TypeOf((*q.Error)(nil)).Elem(),
"Func": reflect.TypeOf((*q.Func)(nil)).Elem(),
"ImportMode": reflect.TypeOf((*q.ImportMode)(nil)).Elem(),
"Info": reflect.TypeOf((*q.Info)(nil)).Elem(),
"Initializer": reflect.TypeOf((*q.Initializer)(nil)).Elem(),
"Instance": reflect.TypeOf((*q.Instance)(nil)).Elem(),
"Interface": reflect.TypeOf((*q.Interface)(nil)).Elem(),
"Label": reflect.TypeOf((*q.Label)(nil)).Elem(),
"Map": reflect.TypeOf((*q.Map)(nil)).Elem(),
"MethodSet": reflect.TypeOf((*q.MethodSet)(nil)).Elem(),
"Named": reflect.TypeOf((*q.Named)(nil)).Elem(),
"Nil": reflect.TypeOf((*q.Nil)(nil)).Elem(),
"Package": reflect.TypeOf((*q.Package)(nil)).Elem(),
"PkgName": reflect.TypeOf((*q.PkgName)(nil)).Elem(),
"Pointer": reflect.TypeOf((*q.Pointer)(nil)).Elem(),
"Qualifier": reflect.TypeOf((*q.Qualifier)(nil)).Elem(),
"Scope": reflect.TypeOf((*q.Scope)(nil)).Elem(),
"Selection": reflect.TypeOf((*q.Selection)(nil)).Elem(),
"SelectionKind": reflect.TypeOf((*q.SelectionKind)(nil)).Elem(),
"Signature": reflect.TypeOf((*q.Signature)(nil)).Elem(),
"Slice": reflect.TypeOf((*q.Slice)(nil)).Elem(),
"StdSizes": reflect.TypeOf((*q.StdSizes)(nil)).Elem(),
"Struct": reflect.TypeOf((*q.Struct)(nil)).Elem(),
"Term": reflect.TypeOf((*q.Term)(nil)).Elem(),
"Tuple": reflect.TypeOf((*q.Tuple)(nil)).Elem(),
"TypeAndValue": reflect.TypeOf((*q.TypeAndValue)(nil)).Elem(),
"TypeList": reflect.TypeOf((*q.TypeList)(nil)).Elem(),
"TypeName": reflect.TypeOf((*q.TypeName)(nil)).Elem(),
"TypeParam": reflect.TypeOf((*q.TypeParam)(nil)).Elem(),
"TypeParamList": reflect.TypeOf((*q.TypeParamList)(nil)).Elem(),
"Union": reflect.TypeOf((*q.Union)(nil)).Elem(),
"Var": reflect.TypeOf((*q.Var)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"Typ": reflect.ValueOf(&q.Typ),
"Universe": reflect.ValueOf(&q.Universe),
"Unsafe": reflect.ValueOf(&q.Unsafe),
},
Funcs: map[string]reflect.Value{
"AssertableTo": reflect.ValueOf(q.AssertableTo),
"AssignableTo": reflect.ValueOf(q.AssignableTo),
"CheckExpr": reflect.ValueOf(q.CheckExpr),
"Comparable": reflect.ValueOf(q.Comparable),
"ConvertibleTo": reflect.ValueOf(q.ConvertibleTo),
"DefPredeclaredTestFuncs": reflect.ValueOf(q.DefPredeclaredTestFuncs),
"Default": reflect.ValueOf(q.Default),
"Eval": reflect.ValueOf(q.Eval),
"ExprString": reflect.ValueOf(q.ExprString),
"Id": reflect.ValueOf(q.Id),
"Identical": reflect.ValueOf(q.Identical),
"IdenticalIgnoreTags": reflect.ValueOf(q.IdenticalIgnoreTags),
"Implements": reflect.ValueOf(q.Implements),
"Instantiate": reflect.ValueOf(q.Instantiate),
"IsInterface": reflect.ValueOf(q.IsInterface),
"LookupFieldOrMethod": reflect.ValueOf(q.LookupFieldOrMethod),
"MissingMethod": reflect.ValueOf(q.MissingMethod),
"NewArray": reflect.ValueOf(q.NewArray),
"NewChan": reflect.ValueOf(q.NewChan),
"NewChecker": reflect.ValueOf(q.NewChecker),
"NewConst": reflect.ValueOf(q.NewConst),
"NewContext": reflect.ValueOf(q.NewContext),
"NewField": reflect.ValueOf(q.NewField),
"NewFunc": reflect.ValueOf(q.NewFunc),
"NewInterface": reflect.ValueOf(q.NewInterface),
"NewInterfaceType": reflect.ValueOf(q.NewInterfaceType),
"NewLabel": reflect.ValueOf(q.NewLabel),
"NewMap": reflect.ValueOf(q.NewMap),
"NewMethodSet": reflect.ValueOf(q.NewMethodSet),
"NewNamed": reflect.ValueOf(q.NewNamed),
"NewPackage": reflect.ValueOf(q.NewPackage),
"NewParam": reflect.ValueOf(q.NewParam),
"NewPkgName": reflect.ValueOf(q.NewPkgName),
"NewPointer": reflect.ValueOf(q.NewPointer),
"NewScope": reflect.ValueOf(q.NewScope),
"NewSignature": reflect.ValueOf(q.NewSignature),
"NewSignatureType": reflect.ValueOf(q.NewSignatureType),
"NewSlice": reflect.ValueOf(q.NewSlice),
"NewStruct": reflect.ValueOf(q.NewStruct),
"NewTerm": reflect.ValueOf(q.NewTerm),
"NewTuple": reflect.ValueOf(q.NewTuple),
"NewTypeName": reflect.ValueOf(q.NewTypeName),
"NewTypeParam": reflect.ValueOf(q.NewTypeParam),
"NewUnion": reflect.ValueOf(q.NewUnion),
"NewVar": reflect.ValueOf(q.NewVar),
"ObjectString": reflect.ValueOf(q.ObjectString),
"RelativeTo": reflect.ValueOf(q.RelativeTo),
"Satisfies": reflect.ValueOf(q.Satisfies),
"SelectionString": reflect.ValueOf(q.SelectionString),
"SizesFor": reflect.ValueOf(q.SizesFor),
"TypeString": reflect.ValueOf(q.TypeString),
"WriteExpr": reflect.ValueOf(q.WriteExpr),
"WriteSignature": reflect.ValueOf(q.WriteSignature),
"WriteType": reflect.ValueOf(q.WriteType),
},
TypedConsts: map[string]igop.TypedConst{
"Bool": {reflect.TypeOf(q.Bool), constant.MakeInt64(int64(q.Bool))},
"Byte": {reflect.TypeOf(q.Byte), constant.MakeInt64(int64(q.Byte))},
"Complex128": {reflect.TypeOf(q.Complex128), constant.MakeInt64(int64(q.Complex128))},
"Complex64": {reflect.TypeOf(q.Complex64), constant.MakeInt64(int64(q.Complex64))},
"FieldVal": {reflect.TypeOf(q.FieldVal), constant.MakeInt64(int64(q.FieldVal))},
"Float32": {reflect.TypeOf(q.Float32), constant.MakeInt64(int64(q.Float32))},
"Float64": {reflect.TypeOf(q.Float64), constant.MakeInt64(int64(q.Float64))},
"Int": {reflect.TypeOf(q.Int), constant.MakeInt64(int64(q.Int))},
"Int16": {reflect.TypeOf(q.Int16), constant.MakeInt64(int64(q.Int16))},
"Int32": {reflect.TypeOf(q.Int32), constant.MakeInt64(int64(q.Int32))},
"Int64": {reflect.TypeOf(q.Int64), constant.MakeInt64(int64(q.Int64))},
"Int8": {reflect.TypeOf(q.Int8), constant.MakeInt64(int64(q.Int8))},
"Invalid": {reflect.TypeOf(q.Invalid), constant.MakeInt64(int64(q.Invalid))},
"IsBoolean": {reflect.TypeOf(q.IsBoolean), constant.MakeInt64(int64(q.IsBoolean))},
"IsComplex": {reflect.TypeOf(q.IsComplex), constant.MakeInt64(int64(q.IsComplex))},
"IsConstType": {reflect.TypeOf(q.IsConstType), constant.MakeInt64(int64(q.IsConstType))},
"IsFloat": {reflect.TypeOf(q.IsFloat), constant.MakeInt64(int64(q.IsFloat))},
"IsInteger": {reflect.TypeOf(q.IsInteger), constant.MakeInt64(int64(q.IsInteger))},
"IsNumeric": {reflect.TypeOf(q.IsNumeric), constant.MakeInt64(int64(q.IsNumeric))},
"IsOrdered": {reflect.TypeOf(q.IsOrdered), constant.MakeInt64(int64(q.IsOrdered))},
"IsString": {reflect.TypeOf(q.IsString), constant.MakeInt64(int64(q.IsString))},
"IsUnsigned": {reflect.TypeOf(q.IsUnsigned), constant.MakeInt64(int64(q.IsUnsigned))},
"IsUntyped": {reflect.TypeOf(q.IsUntyped), constant.MakeInt64(int64(q.IsUntyped))},
"MethodExpr": {reflect.TypeOf(q.MethodExpr), constant.MakeInt64(int64(q.MethodExpr))},
"MethodVal": {reflect.TypeOf(q.MethodVal), constant.MakeInt64(int64(q.MethodVal))},
"RecvOnly": {reflect.TypeOf(q.RecvOnly), constant.MakeInt64(int64(q.RecvOnly))},
"Rune": {reflect.TypeOf(q.Rune), constant.MakeInt64(int64(q.Rune))},
"SendOnly": {reflect.TypeOf(q.SendOnly), constant.MakeInt64(int64(q.SendOnly))},
"SendRecv": {reflect.TypeOf(q.SendRecv), constant.MakeInt64(int64(q.SendRecv))},
"String": {reflect.TypeOf(q.String), constant.MakeInt64(int64(q.String))},
"Uint": {reflect.TypeOf(q.Uint), constant.MakeInt64(int64(q.Uint))},
"Uint16": {reflect.TypeOf(q.Uint16), constant.MakeInt64(int64(q.Uint16))},
"Uint32": {reflect.TypeOf(q.Uint32), constant.MakeInt64(int64(q.Uint32))},
"Uint64": {reflect.TypeOf(q.Uint64), constant.MakeInt64(int64(q.Uint64))},
"Uint8": {reflect.TypeOf(q.Uint8), constant.MakeInt64(int64(q.Uint8))},
"Uintptr": {reflect.TypeOf(q.Uintptr), constant.MakeInt64(int64(q.Uintptr))},
"UnsafePointer": {reflect.TypeOf(q.UnsafePointer), constant.MakeInt64(int64(q.UnsafePointer))},
"UntypedBool": {reflect.TypeOf(q.UntypedBool), constant.MakeInt64(int64(q.UntypedBool))},
"UntypedComplex": {reflect.TypeOf(q.UntypedComplex), constant.MakeInt64(int64(q.UntypedComplex))},
"UntypedFloat": {reflect.TypeOf(q.UntypedFloat), constant.MakeInt64(int64(q.UntypedFloat))},
"UntypedInt": {reflect.TypeOf(q.UntypedInt), constant.MakeInt64(int64(q.UntypedInt))},
"UntypedNil": {reflect.TypeOf(q.UntypedNil), constant.MakeInt64(int64(q.UntypedNil))},
"UntypedRune": {reflect.TypeOf(q.UntypedRune), constant.MakeInt64(int64(q.UntypedRune))},
"UntypedString": {reflect.TypeOf(q.UntypedString), constant.MakeInt64(int64(q.UntypedString))},
},
UntypedConsts: map[string]igop.UntypedConst{},
})
}