MCPcopy
hub / github.com/expr-lang/expr / IsNumber

Method IsNumber

checker/nature/nature.go:476–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func (n *Nature) IsNumber() bool {
477 return n.IsInteger || n.IsFloat
478}
479
480func (n *Nature) PromoteNumericNature(c *Cache, rhs Nature) Nature {
481 if n.IsUnknown(c) || rhs.IsUnknown(c) {

Callers 5

IsAnyOfMethod · 0.95
ComparableToMethod · 0.95
checkMethod · 0.80
unaryNodeMethod · 0.80
binaryNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected