Introduce MemberScope::classifierNames and some implementations

It aims to help with further optimizations
This commit is contained in:
Denis Zharkov
2017-08-15 17:50:37 +07:00
parent 1b255b4ed0
commit cd3edfc5b2
17 changed files with 59 additions and 2 deletions
@@ -253,6 +253,8 @@ private class ExtensionsScope(
.toSet()
}
override fun getClassifierNames() = null
override fun printScopeStructure(p: Printer) {
p.println("Extensions for ${receiverClass.name} in:")
contextScope.printStructure(p)
@@ -75,8 +75,8 @@ private class GlobalSyntheticPackageViewDescriptor(override val fqName: FqName,
override fun getContributedFunctions(name: Name, location: LookupLocation): Collection<SimpleFunctionDescriptor> = shouldNotBeCalled()
override fun getFunctionNames(): Set<Name> = shouldNotBeCalled()
override fun getVariableNames(): Set<Name> = shouldNotBeCalled()
override fun getClassifierNames(): Set<Name> = shouldNotBeCalled()
override fun getContributedClassifier(name: Name, location: LookupLocation): ClassifierDescriptor? = shouldNotBeCalled()
@@ -130,4 +130,4 @@ private class GlobalSyntheticPackageViewDescriptor(override val fqName: FqName,
override fun acceptVoid(visitor: DeclarationDescriptorVisitor<Void, Void>?) = shouldNotBeCalled()
override val annotations = Annotations.EMPTY
}
}