Move KFunctionN classes to package "kotlin.reflect"

This commit is contained in:
Alexander Udalov
2014-05-07 20:36:13 +04:00
parent 3dc92c209f
commit 0c2c203e96
5 changed files with 8 additions and 12 deletions
@@ -30,9 +30,8 @@ public class ReflectionTypes(private val module: ModuleDescriptor) {
private val kotlinReflect: JetScope by Delegates.lazy {
// TODO: handle errors gracefully (error types)
val kotlin = module.getPackage(FqName("kotlin")) ?: error("Package kotlin not found in $module")
// TODO: move K*FunctionN under kotlin.reflect.*
// val reflect = kotlin.getMemberScope().getPackage(Name.identifier("reflect")) ?: error("Package reflect not found in $kotlin")
kotlin.getMemberScope()
val reflect = kotlin.getMemberScope().getPackage(Name.identifier("reflect")) ?: error("Package reflect not found in $kotlin")
reflect.getMemberScope()
}
fun find(className: String): ClassDescriptor {