[K/JS] Remove FILE target from JsName annotation and use the new experimental JsFileName annotation instead
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
@file:JsName("ComparatorJs")
|
||||
@file:JsFileName("ComparatorJs")
|
||||
package kotlin
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ internal annotation class marker
|
||||
*
|
||||
*/
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(FILE, CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
@Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
public actual annotation class JsName(actual val name: String)
|
||||
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ public actual annotation class JsName(actual val name: String)
|
||||
*
|
||||
* This annotation can be applied only to files and only when the compilation granularity is `PER_FILE`.
|
||||
*/
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(FILE)
|
||||
public actual annotation class JsFileName(actual val name: String)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:JsName("AbstractMutableCollectionJs")
|
||||
@file:JsFileName("AbstractMutableCollectionJs")
|
||||
|
||||
package kotlin.collections
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* Copyright 2007 Google Inc.
|
||||
*/
|
||||
|
||||
@file:JsName("AbstractMutableListJs")
|
||||
@file:JsFileName("AbstractMutableListJs")
|
||||
|
||||
package kotlin.collections
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:JsName("ArrayListJs")
|
||||
@file:JsFileName("ArrayListJs")
|
||||
|
||||
package kotlin.collections
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:JsName("KCallableJs")
|
||||
@file:JsFileName("KCallableJs")
|
||||
|
||||
package kotlin.reflect
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:kotlin.js.JsName("KClassJs")
|
||||
@file:kotlin.js.JsFileName("KClassJs")
|
||||
|
||||
package kotlin.reflect
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
@file:Suppress("IMPLEMENTING_FUNCTION_INTERFACE")
|
||||
@file:JsName("KPropertyJs")
|
||||
@file:JsFileName("KPropertyJs")
|
||||
|
||||
package kotlin.reflect
|
||||
|
||||
|
||||
Reference in New Issue
Block a user