Minor: add a pair of TODO about FIR scopes
This commit is contained in:
+1
@@ -38,6 +38,7 @@ class FirMemberScopeProvider : FirSessionComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: it's better to cache this scope in ScopeSession
|
||||||
fun selfImportingScope(fqName: FqName, session: FirSession): FirSelfImportingScope {
|
fun selfImportingScope(fqName: FqName, session: FirSession): FirSelfImportingScope {
|
||||||
return selfImportingCache.getOrPut(fqName) {
|
return selfImportingCache.getOrPut(fqName) {
|
||||||
FirSelfImportingScope(fqName, session)
|
FirSelfImportingScope(fqName, session)
|
||||||
|
|||||||
+3
@@ -13,6 +13,9 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirClassifierSymbol
|
|||||||
import org.jetbrains.kotlin.name.ClassId
|
import org.jetbrains.kotlin.name.ClassId
|
||||||
import org.jetbrains.kotlin.name.Name
|
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(
|
class FirLazyNestedClassifierScope(
|
||||||
val classId: ClassId,
|
val classId: ClassId,
|
||||||
session: FirSession
|
session: FirSession
|
||||||
|
|||||||
Reference in New Issue
Block a user