Display Quick Documentation for reserved words

#KT-9934 Fixed
This commit is contained in:
shiraji
2017-12-15 07:37:43 +03:00
committed by Nikolay Krasko
parent 53607ba8d4
commit d3895c519c
6 changed files with 57 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
class Foo {
<caret>lateinit var foo: String
}
//INFO: lateinit allows initializing a <a href="http://kotlinlang.org/docs/reference/properties.html#late-initialized-properties-and-variables">non-null property outside of a constructor</a>
+5
View File
@@ -0,0 +1,5 @@
class Foo {
val <caret>lateinit: String = ""
}
//INFO: <div class='definition'><pre><a href="psi_element://Foo"><code>Foo</code></a><br>public final val <b>lateinit</b>: String</pre></div>
+5
View File
@@ -0,0 +1,5 @@
<caret>tailrec fun foo() {
foo()
}
//INFO: tailrec marks a function as <a href="http://kotlinlang.org/docs/reference/functions.html#tail-recursive-functions">tail-recursive</a> (allowing the compiler to replace recursion with iteration)
+5
View File
@@ -0,0 +1,5 @@
class Foo {
val <caret>tailrec: String = ""
}
//INFO: <div class='definition'><pre><a href="psi_element://Foo"><code>Foo</code></a><br>public final val <b>tailrec</b>: String</pre></div>