KtLightAnnotationForSourceEntry fix for reading unnamed java-annotation parameter
This commit is contained in:
committed by
Pavel Talanov
parent
e1924e0d2f
commit
108a40261b
@@ -107,7 +107,7 @@ class KtLightAnnotationForSourceEntry(
|
||||
val annotationConstructor = resolvedCall.resultingDescriptor
|
||||
val parameterName =
|
||||
memberValue.getNonStrictParentOfType<PsiNameValuePair>()?.name ?:
|
||||
memberValue.getNonStrictParentOfType<PsiAnnotationMethod>()?.name ?:
|
||||
memberValue.getNonStrictParentOfType<PsiAnnotationMethod>()?.takeIf { it.containingClass?.isAnnotationType == true }?.name ?:
|
||||
"value"
|
||||
|
||||
val parameter = annotationConstructor.valueParameters.singleOrNull { it.name.asString() == parameterName } ?: return null
|
||||
|
||||
Reference in New Issue
Block a user