Get some first extract_function stuff working

This commit is contained in:
Dave Halter committed 2020-02-22 00:04:11 +01:00
1 parent dcffe8e60b
commit ce1093406a
3 files changed
+117 -23

No files matched your search

+20
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()