Proper toString() added to lazy classes
This commit is contained in:
+2
@@ -73,6 +73,8 @@ class LazyJavaClassDescriptor(
|
||||
private val _annotations = c.resolveAnnotations(jClass.getAnnotations())
|
||||
override fun getAnnotations(): List<AnnotationDescriptor> = _annotations
|
||||
|
||||
override fun toString() = "lazy java class $fqName"
|
||||
|
||||
private inner class LazyJavaClassTypeConstructor : TypeConstructor {
|
||||
|
||||
private val _parameters = c.storageManager.createLazyValue {
|
||||
|
||||
+2
@@ -271,4 +271,6 @@ public class LazyJavaClassMemberScope(
|
||||
// namespaces should be resolved elsewhere
|
||||
override fun getNamespace(name: Name): NamespaceDescriptor? = null
|
||||
override fun getAllPackageNames(): Collection<Name> = listOf()
|
||||
|
||||
override fun toString() = "Lazy java member scope for " + jClass.getFqName()
|
||||
}
|
||||
+2
@@ -78,6 +78,8 @@ public abstract class LazyJavaMemberScope(
|
||||
protected abstract fun getAllFunctionNames(): Collection<Name>
|
||||
protected abstract fun addExtraDescriptors(result: MutableCollection<in DeclarationDescriptor>)
|
||||
|
||||
override fun toString() = "Lazy scope for ${getContainingDeclaration()}"
|
||||
|
||||
TestOnly
|
||||
override fun printScopeStructure(p: Printer) {
|
||||
p.println(javaClass.getSimpleName(), " {")
|
||||
|
||||
+2
@@ -22,6 +22,8 @@ abstract class LazyJavaPackageFragment(
|
||||
protected abstract val _memberScope: JetScope
|
||||
|
||||
override fun getMemberScope() = _memberScope
|
||||
|
||||
override fun toString() = "lazy java package fragment: " + getFqName()
|
||||
}
|
||||
|
||||
public class LazyPackageFragmentForJavaPackage(
|
||||
|
||||
Reference in New Issue
Block a user