private static string LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar) { return(string.Concat(new object[] { "Lexical error at line ", errorLine, ", column ", errorColumn, ". Encountered: ", EOFSeen ? "<EOF> " : string.Concat(new object[] { "\"", TokenMgrError.AddEscapes(curChar.ToString()), "\" (", (int)curChar, "), " }), "after : \"", TokenMgrError.AddEscapes(errorAfter), "\"" })); }
public TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar, int reason) : this(TokenMgrError.LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason) { }