github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_go_constant.go (about) 1 // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. 2 3 // +build go1.16,!go1.17 4 5 package stdlib 6 7 import ( 8 "go/constant" 9 "reflect" 10 ) 11 12 func init() { 13 Symbols["go/constant/constant"] = map[string]reflect.Value{ 14 // function, constant and variable definitions 15 "BinaryOp": reflect.ValueOf(constant.BinaryOp), 16 "BitLen": reflect.ValueOf(constant.BitLen), 17 "Bool": reflect.ValueOf(constant.Bool), 18 "BoolVal": reflect.ValueOf(constant.BoolVal), 19 "Bytes": reflect.ValueOf(constant.Bytes), 20 "Compare": reflect.ValueOf(constant.Compare), 21 "Complex": reflect.ValueOf(constant.Complex), 22 "Denom": reflect.ValueOf(constant.Denom), 23 "Float": reflect.ValueOf(constant.Float), 24 "Float32Val": reflect.ValueOf(constant.Float32Val), 25 "Float64Val": reflect.ValueOf(constant.Float64Val), 26 "Imag": reflect.ValueOf(constant.Imag), 27 "Int": reflect.ValueOf(constant.Int), 28 "Int64Val": reflect.ValueOf(constant.Int64Val), 29 "Make": reflect.ValueOf(constant.Make), 30 "MakeBool": reflect.ValueOf(constant.MakeBool), 31 "MakeFloat64": reflect.ValueOf(constant.MakeFloat64), 32 "MakeFromBytes": reflect.ValueOf(constant.MakeFromBytes), 33 "MakeFromLiteral": reflect.ValueOf(constant.MakeFromLiteral), 34 "MakeImag": reflect.ValueOf(constant.MakeImag), 35 "MakeInt64": reflect.ValueOf(constant.MakeInt64), 36 "MakeString": reflect.ValueOf(constant.MakeString), 37 "MakeUint64": reflect.ValueOf(constant.MakeUint64), 38 "MakeUnknown": reflect.ValueOf(constant.MakeUnknown), 39 "Num": reflect.ValueOf(constant.Num), 40 "Real": reflect.ValueOf(constant.Real), 41 "Shift": reflect.ValueOf(constant.Shift), 42 "Sign": reflect.ValueOf(constant.Sign), 43 "String": reflect.ValueOf(constant.String), 44 "StringVal": reflect.ValueOf(constant.StringVal), 45 "ToComplex": reflect.ValueOf(constant.ToComplex), 46 "ToFloat": reflect.ValueOf(constant.ToFloat), 47 "ToInt": reflect.ValueOf(constant.ToInt), 48 "Uint64Val": reflect.ValueOf(constant.Uint64Val), 49 "UnaryOp": reflect.ValueOf(constant.UnaryOp), 50 "Unknown": reflect.ValueOf(constant.Unknown), 51 "Val": reflect.ValueOf(constant.Val), 52 53 // type definitions 54 "Kind": reflect.ValueOf((*constant.Kind)(nil)), 55 "Value": reflect.ValueOf((*constant.Value)(nil)), 56 57 // interface wrapper definitions 58 "_Value": reflect.ValueOf((*_go_constant_Value)(nil)), 59 } 60 } 61 62 // _go_constant_Value is an interface wrapper for Value type 63 type _go_constant_Value struct { 64 IValue interface{} 65 WExactString func() string 66 WKind func() constant.Kind 67 WString func() string 68 } 69 70 func (W _go_constant_Value) ExactString() string { 71 return W.WExactString() 72 } 73 func (W _go_constant_Value) Kind() constant.Kind { 74 return W.WKind() 75 } 76 func (W _go_constant_Value) String() string { 77 if W.WString == nil { 78 return "" 79 } 80 return W.WString() 81 }