[FIR] Rename FirElementSerializer.containingDeclaration to currentDeclaration for clarity
This commit is contained in:
committed by
Space Team
parent
7da271bab8
commit
c5da2b7433
+2
-2
@@ -67,7 +67,7 @@ import org.jetbrains.kotlin.utils.mapToIndex
|
||||
class FirElementSerializer private constructor(
|
||||
private val session: FirSession,
|
||||
private val scopeSession: ScopeSession,
|
||||
private val containingDeclaration: FirDeclaration?,
|
||||
private val currentDeclaration: FirDeclaration?,
|
||||
private val typeParameters: Interner<FirTypeParameter>,
|
||||
private val extension: FirSerializerExtension,
|
||||
val typeTable: MutableTypeTable,
|
||||
@@ -944,7 +944,7 @@ class FirElementSerializer private constructor(
|
||||
}
|
||||
is ConeTypeParameterType -> {
|
||||
val typeParameter = type.lookupTag.typeParameterSymbol.fir
|
||||
if (typeParameter in ((containingDeclaration as? FirMemberDeclaration)?.typeParameters ?: emptyList())) {
|
||||
if (typeParameter in ((currentDeclaration as? FirMemberDeclaration)?.typeParameters ?: emptyList())) {
|
||||
builder.typeParameterName = getSimpleNameIndex(typeParameter.name)
|
||||
} else {
|
||||
builder.typeParameter = getTypeParameterId(typeParameter)
|
||||
|
||||
Reference in New Issue
Block a user