github.com/goplus/gossa@v0.3.25/pkg/go/constant/go116_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.16,!go1.17 4 5 package constant 6 7 import ( 8 q "go/constant" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "constant", 19 Path: "go/constant", 20 Deps: map[string]string{ 21 "fmt": "fmt", 22 "go/token": "token", 23 "math": "math", 24 "math/big": "big", 25 "strconv": "strconv", 26 "strings": "strings", 27 "sync": "sync", 28 "unicode/utf8": "utf8", 29 }, 30 Interfaces: map[string]reflect.Type{ 31 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 32 }, 33 NamedTypes: map[string]gossa.NamedType{ 34 "Kind": {reflect.TypeOf((*q.Kind)(nil)).Elem(), "", ""}, 35 }, 36 AliasTypes: map[string]reflect.Type{}, 37 Vars: map[string]reflect.Value{}, 38 Funcs: map[string]reflect.Value{ 39 "BinaryOp": reflect.ValueOf(q.BinaryOp), 40 "BitLen": reflect.ValueOf(q.BitLen), 41 "BoolVal": reflect.ValueOf(q.BoolVal), 42 "Bytes": reflect.ValueOf(q.Bytes), 43 "Compare": reflect.ValueOf(q.Compare), 44 "Denom": reflect.ValueOf(q.Denom), 45 "Float32Val": reflect.ValueOf(q.Float32Val), 46 "Float64Val": reflect.ValueOf(q.Float64Val), 47 "Imag": reflect.ValueOf(q.Imag), 48 "Int64Val": reflect.ValueOf(q.Int64Val), 49 "Make": reflect.ValueOf(q.Make), 50 "MakeBool": reflect.ValueOf(q.MakeBool), 51 "MakeFloat64": reflect.ValueOf(q.MakeFloat64), 52 "MakeFromBytes": reflect.ValueOf(q.MakeFromBytes), 53 "MakeFromLiteral": reflect.ValueOf(q.MakeFromLiteral), 54 "MakeImag": reflect.ValueOf(q.MakeImag), 55 "MakeInt64": reflect.ValueOf(q.MakeInt64), 56 "MakeString": reflect.ValueOf(q.MakeString), 57 "MakeUint64": reflect.ValueOf(q.MakeUint64), 58 "MakeUnknown": reflect.ValueOf(q.MakeUnknown), 59 "Num": reflect.ValueOf(q.Num), 60 "Real": reflect.ValueOf(q.Real), 61 "Shift": reflect.ValueOf(q.Shift), 62 "Sign": reflect.ValueOf(q.Sign), 63 "StringVal": reflect.ValueOf(q.StringVal), 64 "ToComplex": reflect.ValueOf(q.ToComplex), 65 "ToFloat": reflect.ValueOf(q.ToFloat), 66 "ToInt": reflect.ValueOf(q.ToInt), 67 "Uint64Val": reflect.ValueOf(q.Uint64Val), 68 "UnaryOp": reflect.ValueOf(q.UnaryOp), 69 "Val": reflect.ValueOf(q.Val), 70 }, 71 TypedConsts: map[string]gossa.TypedConst{ 72 "Bool": {reflect.TypeOf(q.Bool), constant.MakeInt64(int64(q.Bool))}, 73 "Complex": {reflect.TypeOf(q.Complex), constant.MakeInt64(int64(q.Complex))}, 74 "Float": {reflect.TypeOf(q.Float), constant.MakeInt64(int64(q.Float))}, 75 "Int": {reflect.TypeOf(q.Int), constant.MakeInt64(int64(q.Int))}, 76 "String": {reflect.TypeOf(q.String), constant.MakeInt64(int64(q.String))}, 77 "Unknown": {reflect.TypeOf(q.Unknown), constant.MakeInt64(int64(q.Unknown))}, 78 }, 79 UntypedConsts: map[string]gossa.UntypedConst{}, 80 }) 81 }