Add packages kotlin.collections, kotlin.ranges, kotlin.sequences, and kotlin.text to default imports.
This commit is contained in:
@@ -43,11 +43,15 @@ public object JvmPlatform : TargetPlatform("JVM") {
|
||||
override val platformConfigurator: PlatformConfigurator = JvmPlatformConfigurator
|
||||
}
|
||||
|
||||
private val DEFAULT_IMPORTS_FOR_JVM = ArrayList<ImportPath>().apply {
|
||||
private val DEFAULT_IMPORTS_FOR_JVM: List<ImportPath> = ArrayList<ImportPath>().apply {
|
||||
add(ImportPath("java.lang.*"))
|
||||
add(ImportPath("kotlin.*"))
|
||||
add(ImportPath("kotlin.annotation.*"))
|
||||
add(ImportPath("kotlin.jvm.*"))
|
||||
add(ImportPath("kotlin.collections.*"))
|
||||
add(ImportPath("kotlin.ranges.*"))
|
||||
add(ImportPath("kotlin.sequences.*"))
|
||||
add(ImportPath("kotlin.text.*"))
|
||||
add(ImportPath("kotlin.io.*"))
|
||||
|
||||
fun addAllClassifiersFromScope(scope: MemberScope) {
|
||||
|
||||
@@ -31,6 +31,10 @@ public object JsPlatform : TargetPlatform("JS") {
|
||||
ImportPath("java.lang.*"),
|
||||
ImportPath("kotlin.*"),
|
||||
ImportPath("kotlin.annotation.*"),
|
||||
ImportPath("kotlin.collections.*"),
|
||||
ImportPath("kotlin.ranges.*"),
|
||||
ImportPath("kotlin.sequences.*"),
|
||||
ImportPath("kotlin.text.*"),
|
||||
ImportPath("kotlin.js.*")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user