FIR abstract importing scope: return NONE when we have no top-level callables

This commit is contained in:
Mikhail Glukhikh
2019-10-03 16:29:43 +03:00
parent 7ba40ac963
commit 16de3257d5
@@ -69,6 +69,9 @@ abstract class FirAbstractImportingScope(
}
} else if (name.isSpecial || name.identifier.isNotEmpty()) {
val symbols = provider.getTopLevelCallableSymbols(callableId.packageName, callableId.callableName)
if (symbols.isEmpty()) {
return ProcessorAction.NONE
}
for (symbol in symbols) {
if (processor(symbol).stop()) {