Minor. Name clash removed (workaround for KT-1)
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ public abstract class LazyJavaMemberScope(
|
|||||||
protected val c: LazyJavaResolverContextWithTypes,
|
protected val c: LazyJavaResolverContextWithTypes,
|
||||||
private val _containingDeclaration: DeclarationDescriptor
|
private val _containingDeclaration: DeclarationDescriptor
|
||||||
) : JetScope {
|
) : JetScope {
|
||||||
private val allDescriptors = c.storageManager.createRecursionTolerantLazyValue<Collection<DeclarationDescriptor>>(
|
private val _allDescriptors = c.storageManager.createRecursionTolerantLazyValue<Collection<DeclarationDescriptor>>(
|
||||||
{computeAllDescriptors()},
|
{computeAllDescriptors()},
|
||||||
// This is to avoid the following recursive case:
|
// This is to avoid the following recursive case:
|
||||||
// when computing getAllPackageNames() we ask the JavaPsiFacade for all subpackages of foo
|
// when computing getAllPackageNames() we ask the JavaPsiFacade for all subpackages of foo
|
||||||
@@ -309,7 +309,7 @@ public abstract class LazyJavaMemberScope(
|
|||||||
override fun getDeclarationsByLabel(labelName: LabelName) = listOf<DeclarationDescriptor>()
|
override fun getDeclarationsByLabel(labelName: LabelName) = listOf<DeclarationDescriptor>()
|
||||||
|
|
||||||
override fun getOwnDeclaredDescriptors() = getAllDescriptors()
|
override fun getOwnDeclaredDescriptors() = getAllDescriptors()
|
||||||
override fun getAllDescriptors() = allDescriptors()
|
override fun getAllDescriptors() = _allDescriptors()
|
||||||
|
|
||||||
private fun computeAllDescriptors(): MutableCollection<DeclarationDescriptor> {
|
private fun computeAllDescriptors(): MutableCollection<DeclarationDescriptor> {
|
||||||
val result = LinkedHashSet<DeclarationDescriptor>()
|
val result = LinkedHashSet<DeclarationDescriptor>()
|
||||||
|
|||||||
Reference in New Issue
Block a user