Advance kotlin.browser and kotlin.dom packages deprecation level to ERROR #KT-39330

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-20 12:28:07 +00:00
committed by Space
parent 93833f7db2
commit 9a5a3bfdfb
18 changed files with 48 additions and 48 deletions
@@ -6,7 +6,7 @@
package org.jetbrains.analyzer package org.jetbrains.analyzer
import org.w3c.xhr.* import org.w3c.xhr.*
import kotlin.browser.* import kotlinx.browser.*
import kotlin.js.* import kotlin.js.*
actual fun readFile(fileName: String): String { actual fun readFile(fileName: String): String {
@@ -6,7 +6,7 @@
package org.jetbrains.analyzer package org.jetbrains.analyzer
import org.w3c.xhr.* import org.w3c.xhr.*
import kotlin.browser.* import kotlinx.browser.*
import kotlin.js.* import kotlin.js.*
actual fun readFile(fileName: String): String { actual fun readFile(fileName: String): String {
@@ -3,7 +3,7 @@
* that can be found in the LICENSE file. * that can be found in the LICENSE file.
*/ */
import kotlin.browser.* import kotlinx.browser.*
import org.w3c.fetch.* import org.w3c.fetch.*
import org.jetbrains.report.json.* import org.jetbrains.report.json.*
import org.jetbrains.buildInfo.Build import org.jetbrains.buildInfo.Build
@@ -1,7 +1,7 @@
package sample package sample
import kotlin.Pair import kotlin.Pair
import kotlin.browser.document import kotlinx.browser.document
import library.sample.* import library.sample.*
import kotlin.js.Date import kotlin.js.Date
@@ -1,6 +1,6 @@
package sample package sample
import kotlin.browser.document import kotlinx.browser.document
fun myApp() { fun myApp() {
val element = document.getElementById("foo") val element = document.getElementById("foo")
+4 -4
View File
@@ -1,19 +1,19 @@
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val document: org.w3c.dom.Document { get; } public external val document: org.w3c.dom.Document { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val localStorage: org.w3c.dom.Storage { get; } public external val localStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val sessionStorage: org.w3c.dom.Storage { get; } public external val sessionStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val window: org.w3c.dom.Window { get; } public external val window: org.w3c.dom.Window { get; }
+9 -9
View File
@@ -1,44 +1,44 @@
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; } public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; } public val org.w3c.dom.Node.isText: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit public inline fun org.w3c.dom.Node.clear(): kotlin.Unit
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
+4 -4
View File
@@ -1,19 +1,19 @@
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val document: org.w3c.dom.Document { get; } public external val document: org.w3c.dom.Document { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val localStorage: org.w3c.dom.Storage { get; } public external val localStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val sessionStorage: org.w3c.dom.Storage { get; } public external val sessionStorage: org.w3c.dom.Storage { get; }
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"}))
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public external val window: org.w3c.dom.Window { get; } public external val window: org.w3c.dom.Window { get; }
+9 -9
View File
@@ -1,44 +1,44 @@
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; } public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; } public val org.w3c.dom.Node.isText: kotlin.Boolean { get; }
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit public inline fun org.w3c.dom.Node.clear(): kotlin.Unit
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean
@kotlin.internal.LowPriorityInOverloadResolution @kotlin.internal.LowPriorityInOverloadResolution
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"})) @kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"}))
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") @kotlin.DeprecatedSinceKotlin(errorSince = "1.6", warningSince = "1.4")
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean
@@ -13,7 +13,7 @@ import kotlin.internal.LowPriorityInOverloadResolution
replaceWith = ReplaceWith("window", "kotlinx.browser.window") replaceWith = ReplaceWith("window", "kotlinx.browser.window")
) )
@LowPriorityInOverloadResolution @LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public external val window: Window public external val window: Window
@Deprecated( @Deprecated(
@@ -21,7 +21,7 @@ public external val window: Window
replaceWith = ReplaceWith("document", "kotlinx.browser.document") replaceWith = ReplaceWith("document", "kotlinx.browser.document")
) )
@LowPriorityInOverloadResolution @LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public external val document: Document public external val document: Document
@Deprecated( @Deprecated(
@@ -29,7 +29,7 @@ public external val document: Document
replaceWith = ReplaceWith("localStorage", "kotlinx.browser.localStorage") replaceWith = ReplaceWith("localStorage", "kotlinx.browser.localStorage")
) )
@LowPriorityInOverloadResolution @LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public external val localStorage: Storage public external val localStorage: Storage
@Deprecated( @Deprecated(
@@ -37,6 +37,6 @@ public external val localStorage: Storage
replaceWith = ReplaceWith("sessionStorage", "kotlinx.browser.sessionStorage") replaceWith = ReplaceWith("sessionStorage", "kotlinx.browser.sessionStorage")
) )
@LowPriorityInOverloadResolution @LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public external val sessionStorage: Storage public external val sessionStorage: Storage
@@ -21,7 +21,7 @@ import kotlinx.dom.createElement as newCreateElement
message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.",
replaceWith = ReplaceWith("this.createElement(name, init)", "kotlinx.dom.createElement") replaceWith = ReplaceWith("this.createElement(name, init)", "kotlinx.dom.createElement")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public inline fun Document.createElement(name: String, noinline init: Element.() -> Unit): Element = this.newCreateElement(name, init) public inline fun Document.createElement(name: String, noinline init: Element.() -> Unit): Element = this.newCreateElement(name, init)
/** /**
@@ -34,6 +34,6 @@ public inline fun Document.createElement(name: String, noinline init: Element.()
message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.",
replaceWith = ReplaceWith("this.appendElement(name, init)", "kotlinx.dom.appendElement") replaceWith = ReplaceWith("this.appendElement(name, init)", "kotlinx.dom.appendElement")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public inline fun Element.appendElement(name: String, noinline init: Element.() -> Unit): Element = this.newAppendElement(name, init) public inline fun Element.appendElement(name: String, noinline init: Element.() -> Unit): Element = this.newAppendElement(name, init)
@@ -17,7 +17,7 @@ import kotlinx.dom.removeClass as newRemoveClass
message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.",
replaceWith = ReplaceWith("this.hasClass(cssClass)", "kotlinx.dom.hasClass") replaceWith = ReplaceWith("this.hasClass(cssClass)", "kotlinx.dom.hasClass")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
inline fun Element.hasClass(cssClass: String): Boolean = this.newHasClass(cssClass) inline fun Element.hasClass(cssClass: String): Boolean = this.newHasClass(cssClass)
/** /**
@@ -30,7 +30,7 @@ inline fun Element.hasClass(cssClass: String): Boolean = this.newHasClass(cssCla
message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.",
replaceWith = ReplaceWith("this.addClass(cssClasses)", "kotlinx.dom.addClass") replaceWith = ReplaceWith("this.addClass(cssClasses)", "kotlinx.dom.addClass")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
inline fun Element.addClass(vararg cssClasses: String): Boolean = this.newAddClass(*cssClasses) inline fun Element.addClass(vararg cssClasses: String): Boolean = this.newAddClass(*cssClasses)
/** /**
@@ -43,5 +43,5 @@ inline fun Element.addClass(vararg cssClasses: String): Boolean = this.newAddCla
message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.",
replaceWith = ReplaceWith("this.removeClass(cssClasses)", "kotlinx.dom.removeClass") replaceWith = ReplaceWith("this.removeClass(cssClasses)", "kotlinx.dom.removeClass")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
inline fun Element.removeClass(vararg cssClasses: String): Boolean = this.newRemoveClass(*cssClasses) inline fun Element.removeClass(vararg cssClasses: String): Boolean = this.newRemoveClass(*cssClasses)
+2 -2
View File
@@ -19,7 +19,7 @@ import kotlinx.dom.isText as newIsText
message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.",
replaceWith = ReplaceWith("this.isText", "kotlinx.dom.isText") replaceWith = ReplaceWith("this.isText", "kotlinx.dom.isText")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public val Node.isText: Boolean public val Node.isText: Boolean
inline get() = this.newIsText inline get() = this.newIsText
@@ -31,6 +31,6 @@ public val Node.isText: Boolean
message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.",
replaceWith = ReplaceWith("this.isElement", "kotlinx.dom.isElement") replaceWith = ReplaceWith("this.isElement", "kotlinx.dom.isElement")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public val Node.isElement: Boolean public val Node.isElement: Boolean
inline get() = this.newIsElement inline get() = this.newIsElement
@@ -17,7 +17,7 @@ import kotlinx.dom.clear as newClear
message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.",
replaceWith = ReplaceWith("this.clear()", "kotlinx.dom.clear") replaceWith = ReplaceWith("this.clear()", "kotlinx.dom.clear")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
public inline fun Node.clear() = this.newClear() public inline fun Node.clear() = this.newClear()
/** /**
@@ -30,5 +30,5 @@ public inline fun Node.clear() = this.newClear()
message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.",
replaceWith = ReplaceWith("this.appendText(text)", "kotlinx.dom.appendText") replaceWith = ReplaceWith("this.appendText(text)", "kotlinx.dom.appendText")
) )
@DeprecatedSinceKotlin(warningSince = "1.4") @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
inline fun Element.appendText(text: String): Element = this.newAppendText(text) inline fun Element.appendText(text: String): Element = this.newAppendText(text)
@@ -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. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/ */
import kotlin.browser.document import kotlinx.browser.document
fun main() { fun main() {
document.write("Hello, world!") document.write("Hello, world!")
@@ -1,7 +1,7 @@
package example.library package example.library
import org.w3c.dom.Text import org.w3c.dom.Text
import kotlin.browser.* import kotlinx.browser.*
public class Counter(val el: Text) { public class Counter(val el: Text) {
fun step(n: Int) { fun step(n: Int) {
@@ -1,6 +1,6 @@
package example package example
import kotlin.browser.document import kotlinx.browser.document
import example.library.Counter import example.library.Counter
@@ -1,6 +1,6 @@
package ${package} package ${package}
import kotlin.browser.window import kotlinx.browser.window
/** /**
* Example main function. Started at script body. * Example main function. Started at script body.