[FIR] Improve constraint errors rendering in html dump
This commit is contained in:
@@ -43,6 +43,10 @@ body.dark {
|
|||||||
text-decoration-color: red;
|
text-decoration-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark .subtype-error {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
.dark .error.unsupported {
|
.dark .error.unsupported {
|
||||||
text-decoration-color: cyan;
|
text-decoration-color: cyan;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
text-decoration-color: red;
|
text-decoration-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.white .subtype-error {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
.white .error.unsupported {
|
.white .error.unsupported {
|
||||||
text-decoration-color: cyan;
|
text-decoration-color: cyan;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1221,11 +1221,12 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
when (callDiagnostic) {
|
when (callDiagnostic) {
|
||||||
is NewConstraintError -> {
|
is NewConstraintError -> {
|
||||||
ident()
|
ident()
|
||||||
+"Lower: "
|
|
||||||
generate(callDiagnostic.lowerType as ConeKotlinType)
|
generate(callDiagnostic.lowerType as ConeKotlinType)
|
||||||
br
|
|
||||||
ident()
|
ws
|
||||||
+"Upper: "
|
span(classes = "subtype-error") { +"<:" }
|
||||||
|
ws
|
||||||
generate(callDiagnostic.upperType as ConeKotlinType)
|
generate(callDiagnostic.upperType as ConeKotlinType)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user