| 3594 | } |
| 3595 | |
| 3596 | bool CompileHelper::errorOnNegativeConstant(DesignComponent *component, |
| 3597 | Value *value, |
| 3598 | CompileDesign *compileDesign, |
| 3599 | ValuedComponentI *instance) { |
| 3600 | if (value == nullptr) return false; |
| 3601 | const std::string &val = value->uhdmValue(); |
| 3602 | return errorOnNegativeConstant(component, val, compileDesign, instance, |
| 3603 | BadPathId, 0, 0); |
| 3604 | } |
| 3605 | |
| 3606 | bool CompileHelper::errorOnNegativeConstant(DesignComponent *component, |
| 3607 | expr *exp, |
no test coverage detected