PY-6637 Update extracted method and its usages
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Fri, 2 Oct 2015 14:16:22 +0000 (17:16 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 5 Oct 2015 10:09:04 +0000 (13:09 +0300)
commit5e0e9fb28daef765fd13b725006a5702c96a56a4
tree9f9256c02cb0c821623d42126cf1589d2fc05f91
parentfeb18098b94c1447168fac03a95eecc5a3f522b9
PY-6637 Update extracted method and its usages

If method contained access to the single instance attributes, method
receiver is inlined as the first argument of every function call.
Otherwise new assignment statement is introduces before each call.
12 files changed:
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/methodImportUpdates/after/main.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodImportUpdates/after/other.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodImportUpdates/before/main.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodImportUpdates/before/other.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodMultipleAttributesRead.after.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodMultipleAttributesRead.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodSingleAttributeRead.after.py [new file with mode: 0644]
python/testData/refactoring/convertTopLevel/methodSingleAttributeRead.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/refactoring/PyMakeFunctionTopLevelTest.java