FIR LC: don't include annotations w/o use-site targets to property accessors
This commit is contained in:
committed by
Ilya Kirillov
parent
5446a8ad10
commit
c2964f688e
+1
@@ -86,6 +86,7 @@ internal class FirLightAccessorMethodForSymbol(
|
||||
parent = this,
|
||||
nullability = nullabilityType,
|
||||
annotationUseSiteTarget = accessorSite,
|
||||
includeAnnotationsWithoutSite = false
|
||||
)
|
||||
|
||||
val annotationsFromAccessor = propertyAccessorSymbol.computeAnnotations(
|
||||
|
||||
+3
-3
@@ -21,7 +21,7 @@ internal class FirLightSetterParameterForSymbol(
|
||||
) : FirLightParameterBaseForSymbol(parameterSymbol, containingMethod) {
|
||||
|
||||
private val _annotations: List<PsiAnnotation> by lazyPub {
|
||||
val annotationsFomSetter = parameterSymbol.computeAnnotations(
|
||||
val annotationsFromSetter = parameterSymbol.computeAnnotations(
|
||||
parent = this,
|
||||
nullability = NullabilityType.Unknown,
|
||||
annotationUseSiteTarget = null,
|
||||
@@ -34,7 +34,7 @@ internal class FirLightSetterParameterForSymbol(
|
||||
includeAnnotationsWithoutSite = false
|
||||
)
|
||||
|
||||
annotationsFomSetter + annotationsFromProperty
|
||||
annotationsFromSetter + annotationsFromProperty
|
||||
}
|
||||
|
||||
override fun getModifierList(): PsiModifierList = _modifierList
|
||||
@@ -51,4 +51,4 @@ internal class FirLightSetterParameterForSymbol(
|
||||
override fun hashCode(): Int = kotlinOrigin.hashCode()
|
||||
|
||||
override fun isValid(): Boolean = super.isValid() && parameterSymbol.isValid()
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -10,4 +10,6 @@ class A {
|
||||
@Transient
|
||||
@Volatile
|
||||
var c: String = ""
|
||||
}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
|
||||
@@ -13,3 +13,5 @@ class A {
|
||||
@JvmSynthetic get
|
||||
@JvmSynthetic set
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
|
||||
Reference in New Issue
Block a user