Get some first extract_function stuff working

This commit is contained in:
Dave Halter
2020-02-21 23:56:59 +01:00
parent dcffe8e60b
commit ce1093406a
3 changed files with 117 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
# -------------------------------------------------- in-module-1
#? 11 text {'new_name': 'a'}
test(100, (30 + b, c) + 1)
# ++++++++++++++++++++++++++++++++++++++++++++++++++
#? 11 text {'new_name': 'a'}
def a():
return 30 + b
test(100, (a(), c) + 1)
# -------------------------------------------------- in-module-2
#? 0 text {'new_name': 'ab'}
100 + 1 * 2
# ++++++++++++++++++++++++++++++++++++++++++++++++++
#? 0 text {'new_name': 'ab'}
def ab():
return 100 + 1 * 2
ab()