[JS FIR] Support NAME_CONTAINS_ILLEGAL_CHARS diagnostic

^KT-59392 Fixed
This commit is contained in:
Alexander Korepanov
2023-07-20 10:09:38 +02:00
committed by Space Team
parent 37c8ec1e51
commit 89c3781c8e
12 changed files with 95 additions and 36 deletions
@@ -1,25 +0,0 @@
private fun ` .private `(): String = TODO("")
fun ` .public `(): String = TODO("")
@JsName(" __ ")
fun foo(): String = TODO("")
@JsName(" ___ ")
private fun bar(): String = TODO("")
@JsName("validName")
private fun ` .private with @JsName `(): String = TODO("")
private class ` .private class ` {
val ` .field. ` = ""
}
val x: Int
@JsName(".")
get() = TODO("")
fun box(x: dynamic) {
x.`foo-bar`()
x.`ba-z`
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
private fun ` .private `(): String = TODO("")
<!NAME_CONTAINS_ILLEGAL_CHARS!>fun ` .public `(): String<!> = TODO("")