Add postfix template for listOf/setOf/etc

#KT-25239 Fixed
This commit is contained in:
Denis Zharkov
2018-07-04 12:14:01 +03:00
parent 4ab97e8454
commit 0d00eb7de3
23 changed files with 119 additions and 1 deletions
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>arrayOf(s)</spot>
}
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>s</spot>$key
}
@@ -0,0 +1,5 @@
<html>
<body>
Wraps expression into 'arrayOf()'
</body>
</html>
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>listOf(s)</spot>
}
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>s</spot>$key
}
@@ -0,0 +1,5 @@
<html>
<body>
Wraps expression into 'listOf()'
</body>
</html>
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>sequenceOf(s)</spot>
}
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>s</spot>$key
}
@@ -0,0 +1,5 @@
<html>
<body>
Wraps expression into 'sequenceOf()'
</body>
</html>
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>setOf(s)</spot>
}
@@ -0,0 +1,3 @@
fun foo(s: String) {
val x = <spot>s</spot>$key
}
@@ -0,0 +1,5 @@
<html>
<body>
Wraps expression into 'setOf()'
</body>
</html>