Introduce ImportingScope::computeImportedNames

This commit is contained in:
Denis Zharkov
2017-08-15 18:30:50 +07:00
parent cd3edfc5b2
commit 69f3b01e98
7 changed files with 20 additions and 7 deletions
@@ -38,6 +38,8 @@ class ExplicitImportsScope(private val descriptors: Collection<DeclarationDescri
override fun getContributedDescriptors(kindFilter: DescriptorKindFilter, nameFilter: (Name) -> Boolean, changeNamesForAliased: Boolean)
= descriptors
override fun computeImportedNames() = descriptors.mapTo(hashSetOf()) { it.name }
override fun printStructure(p: Printer) {
p.println(this::class.java.name)
}