Minor: add a pair of TODO about FIR scopes

This commit is contained in:
Mikhail Glukhikh
2019-10-23 19:25:00 +03:00
parent e28d41aa61
commit b86f529a8a
2 changed files with 4 additions and 0 deletions
@@ -38,6 +38,7 @@ class FirMemberScopeProvider : FirSessionComponent {
}
}
// TODO: it's better to cache this scope in ScopeSession
fun selfImportingScope(fqName: FqName, session: FirSession): FirSelfImportingScope {
return selfImportingCache.getOrPut(fqName) {
FirSelfImportingScope(fqName, session)
@@ -13,6 +13,9 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirClassifierSymbol
import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.Name
// TODO: we could get rid of this scope and use FirNestedClassifierScope instead,
// but in this case we should make JavaSymbolProvider greedy related to nested classifiers
// (or make possible to calculate nested classifiers on-the-fly)
class FirLazyNestedClassifierScope(
val classId: ClassId,
session: FirSession