void () { assertCurrentToken(PyTokenTypes.ASSERT_KEYWORD); final SyntaxTreeBuilder.Marker assertStatement = myBuilder.mark(); myBuilder.advanceLexer(); if (getExpressionParser().parseSingleExpression(false)) { if (myBuilder.getTokenType() == PyTokenTypes.COMMA) { myBuilder.advanceLexer(); if (!getExpressionParser().parseSingleExpression(false)) { myContext.getBuilder().error(PyParsingBundle.message("PARSE.expected.expression")); } } checkEndOfStatement(); } else { myContext.getBuilder().error(PyParsingBundle.message("PARSE.expected.expression")); } assertStatement.done(PyElementTypes.ASSERT_STATEMENT); }