PY-17392 Update specific PSI elements, instead of entire parameter and statement...
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Fri, 30 Oct 2015 12:39:30 +0000 (15:39 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Fri, 30 Oct 2015 12:59:44 +0000 (15:59 +0300)
commite855697cee29aee162e1a97f122bf94a036e8840
treea05775c99cc0ee40b5a192434355c82e557b1f60
parentc67e042501bb1b5202dcbe64e7e273988f92da44
PY-17392 Update specific PSI elements, instead of entire parameter and statement lists in the quickfix

Helper method PyUtil#addElementToStatementList moves old statement list
on the next line (below the header of the parent statement), if
necessary, *before* the new statement is inserted. If it's done
afterwards and new statement is multiline, it might not be properly
indented.
python/src/com/jetbrains/python/inspections/quickfix/PyDefaultArgumentQuickFix.java
python/src/com/jetbrains/python/psi/PyUtil.java
python/testData/inspections/DefaultArgumentCommentsInsideParameters.py [new file with mode: 0644]
python/testData/inspections/DefaultArgumentCommentsInsideParameters_after.py [new file with mode: 0644]
python/testData/inspections/DefaultArgument_after.py
python/testSrc/com/jetbrains/python/PyQuickFixTest.java