Remove default import "kotlin.reflect"
Basic reflection is usable without any imports (with :: literals)
This reverts commit 9503056dd5.
This commit is contained in:
@@ -16,4 +16,6 @@
|
||||
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import kotlin.reflect.KCallable
|
||||
|
||||
trait KCallableImpl<out R> : KCallable<R>
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
enum class KClassOrigin {
|
||||
BUILT_IN
|
||||
KOTLIN
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import java.lang.reflect.*
|
||||
import kotlin.reflect.*
|
||||
|
||||
open class KForeignMemberProperty<T : Any, out R>(
|
||||
public override val name: String,
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import java.lang.reflect.*
|
||||
import kotlin.reflect.*
|
||||
|
||||
// TODO: properties of built-in classes
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
package kotlin.reflect.jvm.internal
|
||||
import kotlin.reflect.*
|
||||
|
||||
class KPackageImpl(
|
||||
val jClass: Class<*>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import java.lang.reflect.*
|
||||
import kotlin.reflect.*
|
||||
|
||||
trait KPropertyImpl<out R> : KProperty<R>, KCallableImpl<R> {
|
||||
val field: Field?
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import java.lang.reflect.*
|
||||
import kotlin.reflect.*
|
||||
|
||||
open class KTopLevelExtensionPropertyImpl<T, out R>(
|
||||
public override val name: String,
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import java.lang.reflect.*
|
||||
import kotlin.reflect.*
|
||||
|
||||
open class KTopLevelVariableImpl<out R>(
|
||||
public override val name: String,
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
trait KVariableImpl<out R> : KVariable<R>, KPropertyImpl<R>
|
||||
|
||||
trait KMutableVariableImpl<R> : KMutableVariable<R>, KVariableImpl<R>, KMutablePropertyImpl<R>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package kotlin.reflect.jvm.internal
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
fun <T> kClass(jClass: Class<T>): KClassImpl<T> =
|
||||
KClassImpl<T>(jClass)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package kotlin.reflect.jvm
|
||||
|
||||
import kotlin.reflect.*
|
||||
import kotlin.reflect.jvm.internal.*
|
||||
|
||||
public var <R> KProperty<R>.accessible: Boolean
|
||||
|
||||
Reference in New Issue
Block a user