示例#1
0
 public CSToolsException(int en, SourceLineInfo s, string y, string m)
     : base(s.ToString() + ": " + m)
 {
     this.nExceptionNumber = en;
     this.slInfo           = s;
     this.sInput           = y;
 }
示例#2
0
 public string sourceLine(SourceLineInfo s)
 {
     // This is the sourceLine after removal of comments
     // The position in this line is s.charPosition
     // If you want the comments as well, then you should re-read the source file
     // and the position in the line is s.rawCharPosition
     return(m_buf.Substring(s.startOfLine, s.endOfLine - s.startOfLine));
 }
示例#3
0
文件: Lexer.cs 项目: m33p/radegast
 public string sourceLine(SourceLineInfo s)
 {
     return(this.m_buf.Substring(s.startOfLine, s.endOfLine - s.startOfLine));
 }
示例#4
0
 public CSToolsStopException(int en, SourceLineInfo s, string y, string m) : base(en, s, y, m)
 {
 }
 /// <exclude/>
 public string sourceLine(SourceLineInfo s)
 {
     // This is the sourceLine after removal of comments
     // The position in this line is s.charPosition
     // If you want the comments as well, then you should re-read the source file
     // and the position in the line is s.rawCharPosition
     return m_buf.Substring(s.startOfLine,s.endOfLine-s.startOfLine);
 }
 /// <exclude/>
 public CSToolsStopException(int en,SourceLineInfo s, string y, string m)
     : base(en,s,y,m)
 {
 }
 /// <exclude/>
 public CSToolsException(int en,SourceLineInfo s, string y, string m)
     : base(s.ToString()+": "+m)
 {
     nExceptionNumber = en;
     slInfo = s;
     sInput = y;
 }