[K/JS] Remove FILE target from JsName annotation and use the new experimental JsFileName annotation instead

This commit is contained in:
Artem Kobzar
2023-07-27 09:44:28 +00:00
committed by Space Team
parent 029c71ebb1
commit 85ee2d71d2
16 changed files with 24 additions and 24 deletions
@@ -11,7 +11,7 @@ import kotlin.reflect.KClass
/**
* Gives a declaration (a function, a property or a class) specific name in JavaScript.
*/
@Target(FILE, CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
@Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
@OptionalExpectation
public expect annotation class JsName(val name: String)
@@ -37,6 +37,7 @@ public annotation class ExperimentalJsFileName
@Target(FILE)
@OptionalExpectation
@ExperimentalJsFileName
@Retention(AnnotationRetention.SOURCE)
public expect annotation class JsFileName(val name: String)
/**