Refactored a bit.

This commit is contained in:
Dmitry Trofimov
2011-03-23 17:30:57 +03:00
parent 5efccf82c2
commit 45592dc94e
@@ -108,7 +108,8 @@ public class PyUtil {
return ArrayUtil.toObjectArray(result, aClass);
}
public static PyExpression flattenParens(PyExpression expr) {
@Nullable
public static PyExpression flattenParens(@Nullable PyExpression expr) {
while (expr instanceof PyParenthesizedExpression) {
expr = ((PyParenthesizedExpression) expr).getContainedExpression();
}