PY-6637 Handle recursive functions and methods
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 7 Oct 2015 15:36:24 +0000 (18:36 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 7 Oct 2015 15:36:24 +0000 (18:36 +0300)
commit2993db61855affb98b52837388dc0a5f74a2f9b8
tree669a3e5d0887c1763fa14b428c22e5a6779d9ac3
parent394efe62f7ba58232e70f7920dce7df153241f9e
PY-6637 Handle recursive functions and methods

Also refactoring doesn't complain about constructor calls of
top-level classes inside function body.
python/src/com/jetbrains/python/refactoring/makeFunctionTopLevel/PyBaseMakeFunctionTopLevelProcessor.java
python/src/com/jetbrains/python/refactoring/makeFunctionTopLevel/PyMakeLocalFunctionTopLevelProcessor.java
python/src/com/jetbrains/python/refactoring/makeFunctionTopLevel/PyMakeMethodTopLevelProcessor.java
python/testData/refactoring/convertTopLevel/recursiveLocalFunction.after.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/recursiveLocalFunction.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/recursiveMethod.after.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/recursiveMethod.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/refactoring/PyMakeFunctionTopLevelTest.java