Implement a bunch of string based postfix templates

#KT-4710 Fixed
This commit is contained in:
Denis Zharkov
2016-07-12 16:13:00 +03:00
committed by Nikolay Krasko
parent 1b391123e6
commit 189705727f
28 changed files with 178 additions and 6 deletions
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Boolean) {
x.assert<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Boolean) {
assert(x) { "<caret>" }
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any) {
x.par<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any) {
(x)<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any): Any {
x.return<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any): Any {
return x
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any) {
x.sout<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Any) {
println(x)<caret>
}
+3
View File
@@ -0,0 +1,3 @@
fun foo(x: Boolean) {
x.while<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun foo(x: Boolean) {
while (x) {
<caret>
}
}