mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Refactored a bit.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user