828 |
} |
} |
829 |
} |
} |
830 |
|
|
831 |
void ParserContext::addErr(int line, int column, const char* txt) { |
void ParserContext::addErr(int firstLine, int lastLine, int firstColumn, int lastColumn, const char* txt) { |
832 |
ParserIssue e; |
ParserIssue e; |
833 |
e.type = PARSER_ERROR; |
e.type = PARSER_ERROR; |
834 |
e.txt = txt; |
e.txt = txt; |
835 |
e.line = line; |
e.firstLine = firstLine; |
836 |
e.column = column; |
e.lastLine = lastLine; |
837 |
|
e.firstColumn = firstColumn; |
838 |
|
e.lastColumn = lastColumn; |
839 |
vErrors.push_back(e); |
vErrors.push_back(e); |
840 |
vIssues.push_back(e); |
vIssues.push_back(e); |
841 |
} |
} |
842 |
|
|
843 |
void ParserContext::addWrn(int line, int column, const char* txt) { |
void ParserContext::addWrn(int firstLine, int lastLine, int firstColumn, int lastColumn, const char* txt) { |
844 |
ParserIssue w; |
ParserIssue w; |
845 |
w.type = PARSER_WARNING; |
w.type = PARSER_WARNING; |
846 |
w.txt = txt; |
w.txt = txt; |
847 |
w.line = line; |
w.firstLine = firstLine; |
848 |
w.column = column; |
w.lastLine = lastLine; |
849 |
|
w.firstColumn = firstColumn; |
850 |
|
w.lastColumn = lastColumn; |
851 |
vWarnings.push_back(w); |
vWarnings.push_back(w); |
852 |
vIssues.push_back(w); |
vIssues.push_back(w); |
853 |
} |
} |