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