[JS FIR] Implement FirJsReflectionAPICallChecker diagnostic

^KT-60899 Fixed
This commit is contained in:
Alexander Korepanov
2023-11-29 12:39:15 +01:00
committed by Space Team
parent af7eb8b7af
commit d5aaa29a7f
8 changed files with 47 additions and 60 deletions
@@ -182,6 +182,7 @@ object StandardNames {
@JvmField val kMutablePropertyFqName: FqNameUnsafe = reflect("KMutableProperty")
@JvmField val kProperty: ClassId = ClassId.topLevel(kPropertyFqName.toSafe())
@JvmField val kDeclarationContainer: FqNameUnsafe = reflect("KDeclarationContainer")
@JvmField val findAssociatedObject: FqNameUnsafe = reflect("findAssociatedObject")
@JvmField val uByteFqName: FqName = fqName("UByte")
@JvmField val uShortFqName: FqName = fqName("UShort")
@@ -93,6 +93,8 @@ object StandardClassIds {
val constantAllowedTypes = primitiveTypes + unsignedTypes + String
val associatedObjectAnnotations = hashSetOf(Annotations.AssociatedObjectKey, Annotations.ExperimentalAssociatedObjects)
val Continuation = "Continuation".coroutinesId()
@Suppress("FunctionName")
@@ -190,6 +192,9 @@ object StandardClassIds {
val OptionalExpectation = "OptionalExpectation".baseId()
val ImplicitlyActualizedByJvmDeclaration = "ImplicitlyActualizedByJvmDeclaration".jvmId()
val AssociatedObjectKey = "AssociatedObjectKey".reflectId()
val ExperimentalAssociatedObjects = "ExperimentalAssociatedObjects".reflectId()
object ParameterNames {
val value = Name.identifier("value")