FIR: Extract StandardClassIds.KClass
This commit is contained in:
@@ -49,6 +49,7 @@ object StandardClassIds {
|
|||||||
val KProperty2 = "KProperty2".reflectId()
|
val KProperty2 = "KProperty2".reflectId()
|
||||||
val KMutableProperty2 = "KMutableProperty2".reflectId()
|
val KMutableProperty2 = "KMutableProperty2".reflectId()
|
||||||
val KFunction = "KFunction".reflectId()
|
val KFunction = "KFunction".reflectId()
|
||||||
|
val KClass = "KClass".reflectId()
|
||||||
|
|
||||||
val Comparable = "Comparable".baseId()
|
val Comparable = "Comparable".baseId()
|
||||||
val Number = "Number".baseId()
|
val Number = "Number".baseId()
|
||||||
|
|||||||
+1
-1
@@ -520,7 +520,7 @@ class FirExpressionsResolveTransformer(transformer: FirBodyResolveTransformer) :
|
|||||||
|
|
||||||
transformedGetClassCall.resultType =
|
transformedGetClassCall.resultType =
|
||||||
buildResolvedTypeRef {
|
buildResolvedTypeRef {
|
||||||
type = ClassId.fromString("kotlin/reflect/KClass").constructClassLikeType(arrayOf(typeOfExpression), false)
|
type = StandardClassIds.KClass.constructClassLikeType(arrayOf(typeOfExpression), false)
|
||||||
}
|
}
|
||||||
return transformedGetClassCall.compose()
|
return transformedGetClassCall.compose()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user