/
go1_17_go_constant.go
82 lines (74 loc) · 2.98 KB
/
go1_17_go_constant.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
// Code generated by 'yaegi extract go/constant'. DO NOT EDIT.
//go:build go1.17
// +build go1.17
package stdlib
import (
"go/constant"
"reflect"
)
func init() {
Symbols["go/constant/constant"] = map[string]reflect.Value{
// function, constant and variable definitions
"BinaryOp": reflect.ValueOf(constant.BinaryOp),
"BitLen": reflect.ValueOf(constant.BitLen),
"Bool": reflect.ValueOf(constant.Bool),
"BoolVal": reflect.ValueOf(constant.BoolVal),
"Bytes": reflect.ValueOf(constant.Bytes),
"Compare": reflect.ValueOf(constant.Compare),
"Complex": reflect.ValueOf(constant.Complex),
"Denom": reflect.ValueOf(constant.Denom),
"Float": reflect.ValueOf(constant.Float),
"Float32Val": reflect.ValueOf(constant.Float32Val),
"Float64Val": reflect.ValueOf(constant.Float64Val),
"Imag": reflect.ValueOf(constant.Imag),
"Int": reflect.ValueOf(constant.Int),
"Int64Val": reflect.ValueOf(constant.Int64Val),
"Make": reflect.ValueOf(constant.Make),
"MakeBool": reflect.ValueOf(constant.MakeBool),
"MakeFloat64": reflect.ValueOf(constant.MakeFloat64),
"MakeFromBytes": reflect.ValueOf(constant.MakeFromBytes),
"MakeFromLiteral": reflect.ValueOf(constant.MakeFromLiteral),
"MakeImag": reflect.ValueOf(constant.MakeImag),
"MakeInt64": reflect.ValueOf(constant.MakeInt64),
"MakeString": reflect.ValueOf(constant.MakeString),
"MakeUint64": reflect.ValueOf(constant.MakeUint64),
"MakeUnknown": reflect.ValueOf(constant.MakeUnknown),
"Num": reflect.ValueOf(constant.Num),
"Real": reflect.ValueOf(constant.Real),
"Shift": reflect.ValueOf(constant.Shift),
"Sign": reflect.ValueOf(constant.Sign),
"String": reflect.ValueOf(constant.String),
"StringVal": reflect.ValueOf(constant.StringVal),
"ToComplex": reflect.ValueOf(constant.ToComplex),
"ToFloat": reflect.ValueOf(constant.ToFloat),
"ToInt": reflect.ValueOf(constant.ToInt),
"Uint64Val": reflect.ValueOf(constant.Uint64Val),
"UnaryOp": reflect.ValueOf(constant.UnaryOp),
"Unknown": reflect.ValueOf(constant.Unknown),
"Val": reflect.ValueOf(constant.Val),
// type definitions
"Kind": reflect.ValueOf((*constant.Kind)(nil)),
"Value": reflect.ValueOf((*constant.Value)(nil)),
// interface wrapper definitions
"_Value": reflect.ValueOf((*_go_constant_Value)(nil)),
}
}
// _go_constant_Value is an interface wrapper for Value type
type _go_constant_Value struct {
IValue interface{}
WExactString func() string
WKind func() constant.Kind
WString func() string
}
func (W _go_constant_Value) ExactString() string {
return W.WExactString()
}
func (W _go_constant_Value) Kind() constant.Kind {
return W.WKind()
}
func (W _go_constant_Value) String() string {
if W.WString == nil {
return ""
}
return W.WString()
}