mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
- ability to inline single/all invocations and keep/remove the declaration - handled name conflicts of local and imported vars/functions - cases when this refactoring is not applicable can be found in PyInlineFunctionHandler (cherry picked from commit 40e298ba2b833a4408ee774628b84fe422468b91) GitOrigin-RevId: dd3fab59800163b4f300b410cd28a62c1ee1b6f3
19 lines
202 B
Python
19 lines
202 B
Python
|
|
|
|
def do_work():
|
|
pass
|
|
|
|
|
|
def do_more_work(x):
|
|
pass
|
|
|
|
|
|
def do_substantially_more_work():
|
|
pass
|
|
|
|
|
|
def foo(arg):
|
|
do_work()
|
|
do_more_work(arg)
|
|
do_substantially_more_work()
|
|
return arg |