IronPython.Compiler.Parser.GetErrorMessage C# (CSharp) Метод

GetErrorMessage() приватный статический Метод

private static GetErrorMessage ( IronPython.Compiler.Token t, int errorCode ) : string
t IronPython.Compiler.Token
errorCode int
Результат string
        private static string GetErrorMessage(Token t, int errorCode) {
            string msg;
            if ((errorCode & ~ErrorCodes.IncompleteMask) == ErrorCodes.IndentationError) {
                msg = Resources.ExpectedIndentation;
            } else if (t.Kind != TokenKind.EndOfFile) {
                msg = Resources.UnexpectedToken;
            } else {
                msg = "unexpected EOF while parsing";
            }
            
            return msg;
        }
Parser