/[svn]/linuxsampler/trunk/src/scriptvm/tree.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3728 by schoenebeck, Sat Jan 11 20:19:11 2020 UTC revision 3729 by schoenebeck, Fri Jan 31 10:57:53 2020 UTC
# Line 1812  ParserContext::~ParserContext() { Line 1812  ParserContext::~ParserContext() {
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;
# Line 1820  void ParserContext::addErr(int firstLine Line 1823  void ParserContext::addErr(int firstLine
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;
# Line 1832  void ParserContext::addWrn(int firstLine Line 1840  void ParserContext::addWrn(int firstLine
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    

Legend:
Removed from v.3728  
changed lines
  Added in v.3729

  ViewVC Help
Powered by ViewVC