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