Extract Function/Introduce Property: Support extraction of string template fragments
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// SUGGESTED_NAMES: s, getX
|
||||
fun foo(a: Int): String {
|
||||
val x = "x${s()}$a"
|
||||
val y = "${a}${s()}x"
|
||||
val z = "xddf$a"
|
||||
return "abc${s()}"
|
||||
}
|
||||
|
||||
private fun s() = "def"
|
||||
Reference in New Issue
Block a user