Extract Function/Introduce Property: Support extraction of string template fragments

This commit is contained in:
Alexey Sedunov
2015-11-18 15:11:10 +03:00
parent f4b4b023a3
commit 741489f4a5
75 changed files with 846 additions and 91 deletions
@@ -0,0 +1,12 @@
// SUGGESTED_NAMES: s, getX
// PARAM_DESCRIPTOR: value-parameter val a: kotlin.Int defined in foo
// PARAM_TYPES: kotlin.Int
fun foo(a: Int): String {
val x = """_c$a
:${a + 1}d_"""
val y = "_$a:${a + 1}d_"
val z = """_c$a:${a + 1}d_"""
val u = "_c$a\n:${a + 1}d_"
return """ab<selection>c$a
:${a + 1}d</selection>ef"""
}