MCPcopy Create free account
hub / github.com/araddon/qlbridge / NumberNode

Struct NumberNode

expr/node.go:238–244  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected