Improve NONE_APPLICABLE ide renderer

This commit is contained in:
Pavel V. Talanov
2016-02-25 11:35:36 +03:00
parent 8cbc9eee3e
commit e397544aee
7 changed files with 86 additions and 13 deletions
+21
View File
@@ -0,0 +1,21 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: NONE_APPLICABLE
// !MESSAGE_TYPE: HTML
package a.b
fun foo(a: kotlin.String) {
}
fun foo(b: String) {
}
fun foo(i: Int) {
}
class String
val c = foo(1, 2)
@@ -0,0 +1,9 @@
<!-- noneApplicableHtml1 -->
<html>
None of the following functions can be called with the arguments supplied.
<ul>
<li>foo(<font color=red><b>a.b.String</b></font><font color=red><b>)</b></font> <i>defined in</i> a.b</li>
<li>foo(Int<font color=red><b>)</b></font> <i>defined in</i> a.b</li>
<li>foo(<font color=red><b>kotlin.String</b></font><font color=red><b>)</b></font> <i>defined in</i> a.b</li>
</ul>
</html>
+21
View File
@@ -0,0 +1,21 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: NONE_APPLICABLE
// !MESSAGE_TYPE: TEXT
package a.b
fun foo(a: kotlin.String) {
}
fun foo(b: String) {
}
fun foo(i: Int) {
}
class String
val c = foo(1, 2)
@@ -0,0 +1,5 @@
<!-- noneApplicableTxt1 -->
None of the following functions can be called with the arguments supplied:
public fun foo(b: a.b.String): Unit defined in a.b
public fun foo(i: Int): Unit defined in a.b
public fun foo(a: kotlin.String): Unit defined in a.b