Fix REWRITE_ON_SLICE ANNOTATION in analysis API test

After this commit, all
Fe10IdeNormalAnalysisSourceModuleAnalysisApiAnnotationsOnFilesTestGenerated
pass
This commit is contained in:
Mikhail Glukhikh
2022-05-20 17:37:15 +02:00
committed by Space
parent b1d9b79712
commit 06bca02dd5
@@ -61,7 +61,7 @@ class LazyAnnotations(
override fun isEmpty() = annotationEntries.isEmpty()
private val annotation = c.storageManager.createMemoizedFunction { entry: KtAnnotationEntry ->
LazyAnnotationDescriptor(c, entry)
c.trace.get(BindingContext.ANNOTATION, entry) ?: LazyAnnotationDescriptor(c, entry)
}
override fun iterator(): Iterator<AnnotationDescriptor> = annotationEntries.asSequence().map(annotation).iterator()