KT-22815: Show documentation for function value/type params

This commit is contained in:
Simon Ogorodnik
2018-07-12 17:08:33 +03:00
parent e4d76382b8
commit 9ec0ce6ec8
3 changed files with 16 additions and 6 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
/**
* @param f docs for param f
*/
fun some(<caret>f: (Int) -> String) : String? = null
//INFO: <div class='definition'><pre>value-parameter <b>f</b>: (Int) &rarr; String</pre></div>
//INFO: <div class='definition'><pre>value-parameter <b>f</b>: (Int) &rarr; String</pre></div><div class='content'><p>docs for param f</p></div><table class='sections'></table>
+4 -1
View File
@@ -1,5 +1,8 @@
interface Base
/**
* @param T this is docs for T
*/
class Some<<caret>T: Base>
//INFO: <div class='definition'><pre><a href="psi_element://Some"><code>Some</code></a><br>&lt;<b>T</b> : <a href="psi_element://Base">Base</a>&gt;</pre></div>
//INFO: <div class='definition'><pre><a href="psi_element://Some"><code>Some</code></a><br>&lt;<b>T</b> : <a href="psi_element://Base">Base</a>&gt;</pre></div><div class='content'><p>this is docs for T</p></div><table class='sections'></table>