UAnnotationUtils.getContainingAnnotationEntry made aware of polyadic expressions

This commit is contained in:
Nicolay Mitropolsky
2018-07-19 17:59:24 +03:00
parent 2e75fe69ec
commit 638af62d53
@@ -92,6 +92,7 @@ fun getContainingAnnotationEntry(uElement: UElement?): Pair<PsiAnnotation, Strin
retrievePsiAnnotationEntry(parent, null)
else
tryConvertToEntry(uElement, parent, name)
is UPolyadicExpression -> retrievePsiAnnotationEntry(parent, null)
is UNamedExpression -> retrievePsiAnnotationEntry(parent, parent.name)
else -> null
}