mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
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.
10 lines
74 B
Python
10 lines
74 B
Python
def method():
|
|
pass
|
|
|
|
|
|
if True:
|
|
class C:
|
|
pass
|
|
|
|
|
|
method() |