KT-59093 [Analysis API] Make all resolveCall overloads nullable

Instead of returning an error which does not mean anything specific,
it's easier just to return `null`
This commit is contained in:
Roman Golyshev
2023-06-20 17:06:16 +02:00
committed by teamcity
parent c81b22e7de
commit 50c93b0228
3 changed files with 5 additions and 19 deletions
@@ -62,7 +62,7 @@ internal abstract class SymbolLightAbstractAnnotation(parent: PsiElement) :
val callElement = kotlinOrigin ?: return null
return analyzeForLightClasses(callElement) {
val valueParameter = callElement.resolveCall()
.singleConstructorCallOrNull()
?.singleConstructorCallOrNull()
?.symbol
?.valueParameters
?.find { it.name.identifierOrNullIfSpecial == attributeName }