[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:
committed by
Space Team
parent
be3f8e7eb0
commit
8fbb605034
@@ -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()}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user