[FIR] KTIJ-24296 Allow special names in symbol provider pre-filtering

- A special name such as `<no name provided>` may not be contained in
  the list of names, but may still be found by a provider.
This commit is contained in:
Marco Pennekamp
2023-02-16 17:06:38 +01:00
committed by Space Team
parent ece038b49b
commit a725fe559c
2 changed files with 12 additions and 6 deletions
@@ -56,6 +56,7 @@ internal abstract class LLFirSymbolProviderNameCache(private val firSession: Fir
}
fun mayHaveTopLevelCallable(packageFqName: FqName, name: Name): Boolean {
if (name.isSpecial) return true
val names = getTopLevelCallableNamesInPackage(packageFqName) ?: return true
return name in names
}