NumberNode holds a number: signed or unsigned integer or float. The value is parsed and stored under all the types that can represent the value. This simulates in a small amount of code the behavior of Go's ideal constants.
| 236 | // The value is parsed and stored under all the types that can represent the value. |
| 237 | // This simulates in a small amount of code the behavior of Go's ideal constants. |
| 238 | NumberNode struct { |
| 239 | IsInt bool // Number has an integer value. |
| 240 | IsFloat bool // Number has a floating-point value. |
| 241 | Int64 int64 // The integer value. |
| 242 | Float64 float64 // The floating-point value. |
| 243 | Text string // The original textual representation from the input. |
| 244 | } |
| 245 | |
| 246 | // ValueNode holds a value.Value type |
| 247 | // value.Values can be strings, numbers, arrays, objects, etc |
nothing calls this directly
no outgoing calls
no test coverage detected