[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:
Nikolay Lunyak
2023-01-10 20:46:48 +02:00
committed by Space Team
parent cf73d59e29
commit 0c86294ca4
5 changed files with 9 additions and 9 deletions
@@ -32,7 +32,7 @@ import org.jetbrains.kotlin.types.ConstantValueKind
inline val FirAnnotation.coneClassLikeType: ConeClassLikeType?
get() = ((annotationTypeRef as? FirResolvedTypeRef)?.type as? ConeClassLikeType)
inline val FirAnnotation.classId: ClassId?
inline val FirAnnotation.unexpandedClassId: ClassId?
get() = coneClassLikeType?.lookupTag?.classId
fun <T> buildConstOrErrorExpression(source: KtSourceElement?, kind: ConstantValueKind<T>, value: T?, diagnostic: ConeDiagnostic): FirExpression =