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

ParseTestListAsExprError() приватный Метод

private ParseTestListAsExprError ( ) : Expression
Результат Expression
        private Expression ParseTestListAsExprError() {
            if (MaybeEat(TokenKind.Indent)) {
                // the error is on the next token which has a useful location, unlike the indent - note we don't have an
                // indent if we're at an EOF.  It'a also an indentation error instead of a syntax error.
                NextToken();
                ReportSyntaxError(GetStart(), GetEnd(), "unexpected indent", ErrorCodes.IndentationError);
            } else {
                ReportSyntaxError(_lookahead);
            }

            return new ErrorExpression();
        }
Parser