[FIR] Rename containingClass function to containingClassLookupTag

Since this function returns lookup tag instead of FirClass or symbol
  the old name may lead to misunderstanding
This commit is contained in:
Dmitriy Novozhilov
2022-10-19 12:12:56 +03:00
committed by Space Team
parent be3f8e7eb0
commit 8fbb605034
43 changed files with 100 additions and 100 deletions
@@ -154,7 +154,7 @@ abstract class FirVisibilityChecker : FirSessionComponent {
}
}
val containingLookupTag = this.containingClass()
val containingLookupTag = this.containingClassLookupTag()
val containingClass = containingLookupTag?.toSymbol(session)?.fir
if (isStatic && containingClass != null) {
@@ -521,7 +521,7 @@ fun FirBasedSymbol<*>.getOwnerLookupTag(): ConeClassLikeLookupTag? {
return when (this) {
is FirBackingFieldSymbol -> fir.propertySymbol.getOwnerLookupTag()
is FirClassLikeSymbol<*> -> getContainingClassLookupTag()
is FirCallableSymbol<*> -> containingClass()
is FirCallableSymbol<*> -> containingClassLookupTag()
else -> error("Unsupported owner search for ${fir.javaClass}: ${fir.render()}")
}
}