Minor. Add a comment to KtLightElement::givenAnnotations

This commit is contained in:
Denis Zharkov
2018-12-17 15:55:55 +03:00
parent e0975df1c0
commit 5052623c0b
@@ -27,6 +27,12 @@ import org.jetbrains.kotlin.resolve.jvm.diagnostics.JvmDeclarationOriginKind
interface KtLightElement<out T : KtElement, out D : PsiElement> : PsiElement {
val kotlinOrigin: T?
/**
* KtLightModifierList by default retrieves annotation from the relevant KtElement or from clsDelegate
* But we have none of them for KtUltraLightAnnotationForDescriptor built upon descriptor
* For that case, KtLightModifierList in the beginning checks `givenAnnotations` and uses them if it's not null
* Probably, it's a bit dirty solution. But, for now it's not clear how to make it better
*/
val givenAnnotations: List<KtLightAbstractAnnotation>? get() = null
val clsDelegate: D