[FIR] Rename FirAnnotation.classId to unexpandedClassId
This makes the eye catch each such thing in the source. OptIn isn't that catchy, plus it may be declared for the whole file, so noticing may be harder
This commit is contained in:
committed by
Space Team
parent
cf73d59e29
commit
0c86294ca4
+2
-2
@@ -18,7 +18,7 @@ import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction
|
||||
import org.jetbrains.kotlin.fir.declarations.hasAnnotation
|
||||
import org.jetbrains.kotlin.fir.declarations.utils.isExtension
|
||||
import org.jetbrains.kotlin.fir.declarations.utils.visibility
|
||||
import org.jetbrains.kotlin.fir.expressions.classId
|
||||
import org.jetbrains.kotlin.fir.expressions.unexpandedClassId
|
||||
import org.jetbrains.kotlin.fir.types.*
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
import org.jetbrains.kotlin.name.JsStandardClassIds
|
||||
@@ -27,7 +27,7 @@ internal abstract class FirJsAbstractNativeAnnotationChecker(private val require
|
||||
protected fun FirFunction.hasRequiredAnnotation(context: CheckerContext) = hasAnnotation(requiredAnnotation, context.session)
|
||||
|
||||
override fun check(declaration: FirSimpleFunction, context: CheckerContext, reporter: DiagnosticReporter) {
|
||||
val annotation = declaration.annotations.find { it.classId == requiredAnnotation } ?: return
|
||||
val annotation = declaration.annotations.find { it.unexpandedClassId == requiredAnnotation } ?: return
|
||||
|
||||
val isMember = !context.isTopLevel && declaration.visibility != Visibilities.Local
|
||||
val isExtension = declaration.isExtension
|
||||
|
||||
Reference in New Issue
Block a user