FIR IDE: introduce composite scopes

This commit is contained in:
Ilya Kirillov
2020-07-06 18:55:41 +03:00
parent 9092b33755
commit 2a495c1135
4 changed files with 73 additions and 4 deletions
@@ -22,6 +22,10 @@ interface KtScope : ValidityOwner {
fun containsName(name: Name): Boolean
}
interface KtCompositeScope : KtScope {
val subScopes: List<KtScope>
}
interface KtMemberScope : KtScope {
val owner: KtClassOrObjectSymbol
}
@@ -13,4 +13,5 @@ abstract class KtScopeProvider : ValidityOwner {
abstract fun getMemberScope(classSymbol: KtClassOrObjectSymbol): KtMemberScope
abstract fun getDeclaredMemberScope(classSymbol: KtClassOrObjectSymbol): KtDeclaredMemberScope
abstract fun getPackageScope(packageSymbol: KtPackageSymbol): KtPackageScope
abstract fun getCompositeScope(subScopes: List<KtScope>): KtCompositeScope
}