Added JetScope.getDescriptors(nameFilter, kindFilter) but the filters are never used yet

This commit is contained in:
Valentin Kipyatkov
2014-10-29 13:49:57 +03:00
parent e8a2039396
commit 760b9c4389
17 changed files with 94 additions and 31 deletions
@@ -283,7 +283,9 @@ public abstract class LazyJavaMemberScope(
override fun getDeclarationsByLabel(labelName: Name) = listOf<DeclarationDescriptor>()
override fun getOwnDeclaredDescriptors() = getAllDescriptors()
override fun getAllDescriptors() = allDescriptors()
override fun getDescriptors(kindFilter: (JetScope.DescriptorKind) -> Boolean,
nameFilter: (String) -> Boolean) = allDescriptors()
private fun computeAllDescriptors(): List<DeclarationDescriptor> {
val result = LinkedHashSet<DeclarationDescriptor>()