[FIR] Use StandardClassIds instead of StandardNames everywhere it's possible
This commit is contained in:
committed by
teamcityserver
parent
5c2a3bb78e
commit
7a347b11e3
+2
-3
@@ -16,7 +16,6 @@ import org.jetbrains.kotlin.fir.declarations.*
|
||||
import org.jetbrains.kotlin.fir.declarations.comparators.FirCallableDeclarationComparator
|
||||
import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor
|
||||
import org.jetbrains.kotlin.fir.declarations.utils.*
|
||||
import org.jetbrains.kotlin.fir.deserialization.CONTINUATION_INTERFACE_CLASS_ID
|
||||
import org.jetbrains.kotlin.fir.deserialization.projection
|
||||
import org.jetbrains.kotlin.fir.expressions.FirAnnotation
|
||||
import org.jetbrains.kotlin.fir.expressions.FirArgumentList
|
||||
@@ -642,7 +641,7 @@ class FirElementSerializer private constructor(
|
||||
is ConeClassLikeType -> {
|
||||
if (type.isSuspendFunctionType(session)) {
|
||||
val runtimeFunctionType = type.suspendFunctionTypeToFunctionTypeWithContinuation(
|
||||
session, CONTINUATION_INTERFACE_CLASS_ID
|
||||
session, StandardClassIds.Continuation
|
||||
)
|
||||
val functionType = typeProto(runtimeFunctionType)
|
||||
functionType.flags = Flags.getTypeFlags(true, false)
|
||||
@@ -657,7 +656,7 @@ class FirElementSerializer private constructor(
|
||||
}
|
||||
is ConeTypeParameterType -> {
|
||||
val typeParameter = type.lookupTag.typeParameterSymbol.fir
|
||||
if (typeParameter in (containingDeclaration as? FirMemberDeclaration)?.typeParameters ?: emptyList()) {
|
||||
if (typeParameter in ((containingDeclaration as? FirMemberDeclaration)?.typeParameters ?: emptyList())) {
|
||||
builder.typeParameterName = getSimpleNameIndex(typeParameter.name)
|
||||
} else {
|
||||
builder.typeParameter = getTypeParameterId(typeParameter)
|
||||
|
||||
Reference in New Issue
Block a user