MCPcopy Create free account
hub / github.com/Nic30/hdlConvertor / check_errors

Method check_errors

src/syntaxErrorLogger.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void SyntaxErrorLogger::check_errors() {
23 stringstream error_msg;
24 error_msg << endl;
25 for (auto &e : _errors) {
26 error_msg << e.filename << ':' << e.line << ':'
27 << (uint32_t) e.charPosition << ":" << error_prefix
28 << "SyntaxError:" << e.message << endl;
29 }
30 if (_errors.size() > 0) {
31 throw ParseException(error_msg.str());
32 }
33}
34
35void SyntaxErrorLogger::syntaxError(antlr4::Recognizer *recognizer,
36 antlr4::Token *UNUSED(offendingSymbol), size_t line, size_t charPositionInLine,

Callers 4

parseFnMethod · 0.80
parseFnMethod · 0.80
run_preprocMethod · 0.80
_parseMethod · 0.80

Calls 1

ParseExceptionClass · 0.85

Tested by

no test coverage detected