Fix for KT-12872 Don't show "defined in <very long qualifier here>" in quick doc for local variables

#KT-12872 fixed
This commit is contained in:
Simon Ogorodnik
2016-12-13 23:08:18 +03:00
committed by Simon Ogorodnik
parent d89afc419d
commit fa01a4efad
6 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
fun some(<caret>f: (Int) -> String) : String? = null
//INFO: <pre><b>value-parameter</b> f: (Int) &rarr; String <i>defined in</i> some</pre>
//INFO: <pre><b>value-parameter</b> f: (Int) &rarr; String</pre>
+1 -1
View File
@@ -4,4 +4,4 @@ fun foo() {
}
}
//INFO: <pre><b>value-parameter</b> it: Int <i>defined in</i> foo.&lt;anonymous&gt;</pre>
//INFO: <pre><b>value-parameter</b> it: Int</pre>
+9
View File
@@ -0,0 +1,9 @@
fun context() {
fun local() {
}
<caret>local()
}
//INFO: <pre><b>local</b> <b>final</b> <b>fun</b> local(): Unit</pre>
+1 -1
View File
@@ -5,4 +5,4 @@ fun test() {
}
//INFO: <pre><b>val</b> test: String? <i>defined in</i> test</pre>
//INFO: <pre><b>val</b> test: String?</pre>