Add postfix template for listOf/setOf/etc
#KT-25239 Fixed
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user