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; }
public Statement(Lexer lexer) : base() { SetPosition(lexer); }
public void SetPosition(Lexer lexer) { SetPosition(lexer[0, false]); }