NewNumVal constructs a new NumVal instance. This is used during parsing and in tests.
(value constant.Value, origString string, negative bool)
| 142 | // NewNumVal constructs a new NumVal instance. This is used during parsing and |
| 143 | // in tests. |
| 144 | func NewNumVal(value constant.Value, origString string, negative bool) *NumVal { |
| 145 | return &NumVal{value: value, origString: origString, negative: negative} |
| 146 | } |
| 147 | |
| 148 | // Kind implements the constant.Value interface. |
| 149 | func (expr *NumVal) Kind() constant.Kind { |