Script, IDE: tweak extract based refactorings to behave better in scripts
Fix not being able to invoke introduce variable for top level script expression Prohibit introduce parameter and introduce property for scripts on top level Basic test for introduce function (produces red code atm)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<selection>val y = 2 + 3</selection>
|
||||
@@ -0,0 +1 @@
|
||||
Cannot refactor in this place
|
||||
@@ -0,0 +1,3 @@
|
||||
//TODO: the result is not correct, should place function declaration before it is used
|
||||
1 + 2
|
||||
<selection>2 + 3</selection>
|
||||
@@ -0,0 +1,7 @@
|
||||
//TODO: the result is not correct, should place function declaration before it is used
|
||||
1 + 2
|
||||
__dummyTestFun__()
|
||||
|
||||
fun __dummyTestFun__() {
|
||||
2 + 3
|
||||
}
|
||||
Reference in New Issue
Block a user