Add explicit imports of kotlin.js.* to stdlib where required.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package kotlin.text
|
||||
|
||||
import kotlin.text.js.*
|
||||
import kotlin.js.RegExp
|
||||
|
||||
/**
|
||||
* Provides enumeration values to use to set regular expression options.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package kotlin.text.js
|
||||
package kotlin.js
|
||||
|
||||
|
||||
public external class RegExp(pattern: String, flags: String? = definedExternally) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package kotlin.text
|
||||
|
||||
import kotlin.text.js.RegExp
|
||||
import kotlin.js.RegExp
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun String.toUpperCase(): String = asDynamic().toUpperCase()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package kotlin.text
|
||||
|
||||
import kotlin.text.js.RegExp
|
||||
import kotlin.js.RegExp
|
||||
|
||||
internal inline fun String.nativeIndexOf(ch: Char, fromIndex: Int): Int = nativeIndexOf(ch.toString(), fromIndex)
|
||||
internal inline fun String.nativeLastIndexOf(ch: Char, fromIndex: Int): Int = nativeLastIndexOf(ch.toString(), fromIndex)
|
||||
|
||||
@@ -3,6 +3,7 @@ package jquery.ui
|
||||
|
||||
//jquery UI
|
||||
import jquery.JQuery
|
||||
import kotlin.js.Json
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package test.js
|
||||
|
||||
import kotlin.js.*
|
||||
import kotlin.test.*
|
||||
import org.junit.Test as test
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package test.js
|
||||
|
||||
import kotlin.text.js.*
|
||||
import kotlin.js.*
|
||||
|
||||
import kotlin.test.*
|
||||
import org.junit.Test as test
|
||||
|
||||
Reference in New Issue
Block a user