Use index to get symbols from importing scopes
This commit is contained in:
committed by
Ilya Kirillov
parent
cefecdef25
commit
2eb439899e
+2
-1
@@ -21,7 +21,8 @@ abstract class FirAbstractSimpleImportingScope(
|
||||
scopeSession: ScopeSession
|
||||
) : FirAbstractImportingScope(session, scopeSession, lookupInFir = true) {
|
||||
|
||||
protected abstract val simpleImports: Map<Name, List<FirResolvedImport>>
|
||||
// TODO try to hide this
|
||||
abstract val simpleImports: Map<Name, List<FirResolvedImport>>
|
||||
|
||||
override fun processClassifiersByNameWithSubstitution(name: Name, processor: (FirClassifierSymbol<*>, ConeSubstitutor) -> Unit) {
|
||||
val imports = simpleImports[name] ?: return
|
||||
|
||||
+2
-1
@@ -21,7 +21,8 @@ abstract class FirAbstractStarImportingScope(
|
||||
lookupInFir: Boolean = true
|
||||
) : FirAbstractImportingScope(session, scopeSession, lookupInFir) {
|
||||
|
||||
protected abstract val starImports: List<FirResolvedImport>
|
||||
// TODO try to hide this
|
||||
abstract val starImports: List<FirResolvedImport>
|
||||
|
||||
private val absentClassifierNames = mutableSetOf<Name>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user