[FIR] Fix slow string conversions in FirEffectiveVisibilityResolver
This commit is contained in:
+1
-4
@@ -113,10 +113,7 @@ class FirEffectiveVisibilityResolverImpl(private val session: FirSession) : FirE
|
|||||||
val declaration = containingDeclarations[index]
|
val declaration = containingDeclarations[index]
|
||||||
val declarationClassId = declaration.getClassId()
|
val declarationClassId = declaration.getClassId()
|
||||||
|
|
||||||
// because classId's we take from firs are
|
if (this.relativeClassName == declarationClassId?.relativeClassName) {
|
||||||
// not the same instances we find in containingDeclarations
|
|
||||||
// TODO: fix
|
|
||||||
if (this.asSingleFqName() == declarationClassId?.asSingleFqName()) {
|
|
||||||
return when (declaration) {
|
return when (declaration) {
|
||||||
is FirRegularClass -> {
|
is FirRegularClass -> {
|
||||||
declaration.symbol to resolveFor(declaration, containingDeclarations.subList(0, index), scopeSession)
|
declaration.symbol to resolveFor(declaration, containingDeclarations.subList(0, index), scopeSession)
|
||||||
|
|||||||
Reference in New Issue
Block a user