Fix convering parents of annotations on primary constructor parameters

This commit is contained in:
Dmitry Jemerov
2017-09-26 15:49:18 +02:00
parent 56168b4a09
commit a4f5a1335a
6 changed files with 38 additions and 8 deletions
@@ -119,6 +119,10 @@ private fun KtParameter.toAnnotationLightMethod(): PsiMethod? {
return LightClassUtil.getLightClassMethod(this)
}
fun KtParameter.toLightGetter(): PsiMethod? = LightClassUtil.getLightClassPropertyMethods(this).getter
fun KtParameter.toLightSetter(): PsiMethod? = LightClassUtil.getLightClassPropertyMethods(this).setter
fun KtTypeParameter.toPsiTypeParameters(): List<PsiTypeParameter> {
val paramList = getNonStrictParentOfType<KtTypeParameterList>() ?: return listOf()