1812 |
} |
} |
1813 |
} |
} |
1814 |
|
|
1815 |
void ParserContext::addErr(int firstLine, int lastLine, int firstColumn, int lastColumn, const char* txt) { |
void ParserContext::addErr(int firstLine, int lastLine, int firstColumn, |
1816 |
|
int lastColumn, int firstByte, int lengthBytes, |
1817 |
|
const char* txt) |
1818 |
|
{ |
1819 |
ParserIssue e; |
ParserIssue e; |
1820 |
e.type = PARSER_ERROR; |
e.type = PARSER_ERROR; |
1821 |
e.txt = txt; |
e.txt = txt; |
1823 |
e.lastLine = lastLine; |
e.lastLine = lastLine; |
1824 |
e.firstColumn = firstColumn; |
e.firstColumn = firstColumn; |
1825 |
e.lastColumn = lastColumn; |
e.lastColumn = lastColumn; |
1826 |
|
e.firstByte = firstByte; |
1827 |
|
e.lengthBytes = lengthBytes; |
1828 |
vErrors.push_back(e); |
vErrors.push_back(e); |
1829 |
vIssues.push_back(e); |
vIssues.push_back(e); |
1830 |
} |
} |
1831 |
|
|
1832 |
void ParserContext::addWrn(int firstLine, int lastLine, int firstColumn, int lastColumn, const char* txt) { |
void ParserContext::addWrn(int firstLine, int lastLine, int firstColumn, |
1833 |
|
int lastColumn, int firstByte, int lengthBytes, |
1834 |
|
const char* txt) |
1835 |
|
{ |
1836 |
ParserIssue w; |
ParserIssue w; |
1837 |
w.type = PARSER_WARNING; |
w.type = PARSER_WARNING; |
1838 |
w.txt = txt; |
w.txt = txt; |
1840 |
w.lastLine = lastLine; |
w.lastLine = lastLine; |
1841 |
w.firstColumn = firstColumn; |
w.firstColumn = firstColumn; |
1842 |
w.lastColumn = lastColumn; |
w.lastColumn = lastColumn; |
1843 |
|
w.firstByte = firstByte; |
1844 |
|
w.lengthBytes = lengthBytes; |
1845 |
vWarnings.push_back(w); |
vWarnings.push_back(w); |
1846 |
vIssues.push_back(w); |
vIssues.push_back(w); |
1847 |
} |
} |
1848 |
|
|
1849 |
void ParserContext::addPreprocessorComment(int firstLine, int lastLine, int firstColumn, int lastColumn) { |
void ParserContext::addPreprocessorComment(int firstLine, int lastLine, |
1850 |
|
int firstColumn, int lastColumn, |
1851 |
|
int firstByte, int lengthBytes) |
1852 |
|
{ |
1853 |
CodeBlock block; |
CodeBlock block; |
1854 |
block.firstLine = firstLine; |
block.firstLine = firstLine; |
1855 |
block.lastLine = lastLine; |
block.lastLine = lastLine; |
1856 |
block.firstColumn = firstColumn; |
block.firstColumn = firstColumn; |
1857 |
block.lastColumn = lastColumn; |
block.lastColumn = lastColumn; |
1858 |
|
block.firstByte = firstByte; |
1859 |
|
block.lengthBytes = lengthBytes; |
1860 |
vPreprocessorComments.push_back(block); |
vPreprocessorComments.push_back(block); |
1861 |
} |
} |
1862 |
|
|