Commit Graph
5 Commits
Author SHA1 Message Date
Mikhail Golubev cd45e79ab2 PY-17265 Placement of inserted function is consistent with Move refactoring
Namely, if a function is being moved to another file it will be
inserted at its end unless there is a top-level usage of it. In this
case the generated function will be inserted right before the first
such usage so as not to produce unresolved references. If function
stays in the same file, it will be inserted after its original parent
statement i.e. another function or a class, again if there is no
conflicting usages.
2016-10-25 00:03:49 +03:00
Mikhail Golubev 5090a3ccbb PY-17265 Add missing test on handling imports for moved local function 2016-10-25 00:03:49 +03:00
Mikhail Golubev 61003f9cdd PY-17265 Check that target module doesn't contain function with this name already and is importable 2016-10-25 00:03:49 +03:00
Mikhail Golubev 9f39149814 PY-17265 Correctly update usages inside function escalated to other file 2016-10-25 00:03:49 +03:00
Mikhail Golubev fc755017b5 PY-6637 Rename test data directory to "makeFunctionTopLevel" for consistency 2015-10-08 12:00:10 +03:00