[FIR] Make toAnnotationLookupTag() return null for generic annotations

This commit is contained in:
Nikolay Lunyak
2021-08-03 14:50:26 +03:00
parent 1a3f47badd
commit 4f2eb8b955
3 changed files with 8 additions and 7 deletions
@@ -28,7 +28,7 @@ internal fun StringBuilder.renderAnnotations(
}
private fun FirAnnotationCall.isParameterName(): Boolean {
return toAnnotationClassId().asSingleFqName() == StandardNames.FqNames.parameterName
return toAnnotationClassId()?.asSingleFqName() == StandardNames.FqNames.parameterName
}
private fun renderAnnotation(annotation: FirAnnotationCall, coneTypeIdeRenderer: ConeTypeIdeRenderer, session: FirSession): String {