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 = "xcf$a"
|
||||
return "ab${s()}ef"
|
||||
}
|
||||
|
||||
private fun s() = "cd"
|
||||
Reference in New Issue
Block a user