| 52 | // Generate an error message. |
| 53 | |
| 54 | void ErrorHandler::error(const std::string& message, const TokenLoc& loc) |
| 55 | { |
| 56 | if (mDowngradeErrors) |
| 57 | { |
| 58 | warning(message, loc); |
| 59 | return; |
| 60 | } |
| 61 | |
| 62 | ++mErrors; |
| 63 | report(message, loc, ErrorMessage); |
| 64 | } |
| 65 | |
| 66 | // Generate an error message for an unexpected EOF. |
| 67 |
no test coverage detected