Minor. Pull computeMemberScope to AbstractLazyType

This commit is contained in:
Denis Zharkov
2015-08-03 10:39:20 +03:00
parent b7c042510d
commit 4563f4b1f9
3 changed files with 11 additions and 31 deletions
@@ -259,14 +259,6 @@ class LazyJavaTypeResolver(
}
}
override fun computeMemberScope(): JetScope {
val descriptor = getConstructor().getDeclarationDescriptor()!!
if (descriptor is TypeParameterDescriptor) return descriptor.getDefaultType().getMemberScope()
return (descriptor as ClassDescriptor).getMemberScope(substitution)
}
override fun computeCustomSubstitution() = if (isRaw()) RawSubstitution else null
private object RawSubstitution : TypeSubstitution() {