NewNumVal constructs a new NumVal instance. This is used during parsing and in tests.
(value constant.Value, origString string, negative bool)
| 126 | // NewNumVal constructs a new NumVal instance. This is used during parsing and |
| 127 | // in tests. |
| 128 | func NewNumVal(value constant.Value, origString string, negative bool) *NumVal { |
| 129 | return &NumVal{value: value, origString: origString, negative: negative} |
| 130 | } |
| 131 | |
| 132 | // Kind implements the constant.Value interface. |
| 133 | func (expr *NumVal) Kind() constant.Kind { |
no outgoing calls
searching dependent graphs…