[SLC] drop hack with setParent for annotations

^KTIJ-23783
This commit is contained in:
Dmitrii Gridin
2022-11-29 16:18:33 +01:00
committed by Space Team
parent c682d4f4cc
commit cba70d70a7
23 changed files with 135 additions and 168 deletions
@@ -33,6 +33,7 @@ abstract class KtLightModifierListDescriptorBased<out T : KtLightElement<KtModif
val annotationsForEntries = owner.givenAnnotations ?: lightAnnotationsForEntries(this)
//TODO: Hacky way to update wrong parents for annotations
annotationsForEntries.forEach {
@Suppress("DEPRECATION_ERROR")
it.parent = this
}
val modifierListOwner = parent