示例#1
0
 public SyntaxException(Lexer lexer, Exception inner)
     : base(_resourceManager, (int)Codes.SyntaxError, ErrorSeverity.Application, inner, lexer[1, false].Token)
 {
     _line = lexer[1, false].Line;
     _linePos = lexer[1, false].LinePos;
     _tokenType = lexer[1, false].Type;
     _token = lexer[1, false].Token;
 }
示例#2
0
 public Statement(Lexer lexer)
     : base()
 {
     SetPosition(lexer);
 }
示例#3
0
 public void SetPosition(Lexer lexer)
 {
     SetPosition(lexer[0, false]);
 }