| 3703 | bool Value::isBool() const { return type_ == booleanValue; } |
| 3704 | |
| 3705 | bool Value::isInt() const { |
| 3706 | switch (type_) { |
| 3707 | case intValue: |
| 3708 | return value_.int_ >= minInt && value_.int_ <= maxInt; |
| 3709 | case uintValue: |
| 3710 | return value_.uint_ <= UInt(maxInt); |
| 3711 | case realValue: |
| 3712 | return value_.real_ >= minInt && value_.real_ <= maxInt && |
| 3713 | IsIntegral(value_.real_); |
| 3714 | default: |
| 3715 | break; |
| 3716 | } |
| 3717 | return false; |
| 3718 | } |
| 3719 | |
| 3720 | bool Value::isUInt() const { |
| 3721 | switch (type_) { |
nothing calls this directly
no test coverage detected