[AA FIR] correctly restore declaration with annotation with argument inside some type from symbol pointer

ConeAttributes can have some non-stable info, so we shouldn't render it

Also reduce resolve from IMPLICIT_TYPES_BODY_RESOLVE to TYPES where it is possible

^KT-58141 Fixed
This commit is contained in:
Dmitrii Gridin
2023-04-20 17:43:37 +02:00
committed by Space Team
parent 866e8a26c7
commit 6b3e49e824
9 changed files with 92 additions and 7 deletions
@@ -0,0 +1,5 @@
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
@Target(AnnotationTarget.TYPE)
annotation class Anno5(val s: String)
fun f<caret>oo(): List<@Anno5("1") Int>? = null
@@ -0,0 +1 @@
fun foo(): kotlin.collections.List<@Anno5(s = "1") kotlin.Int>?
@@ -0,0 +1,37 @@
KtFunctionSymbol:
annotationsList: []
callableIdIfNonLocal: /foo
contextReceivers: []
contractEffects: []
hasStableParameterNames: true
isBuiltinFunctionInvoke: false
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: foo
origin: SOURCE
receiverParameter: null
returnType: KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
annotationsList: [
Anno5(s = "1")
psi: KtAnnotationEntry
]
ownTypeArguments: []
type: @R|Anno5|(s = String(1)) kotlin/Int
]
type: kotlin/collections/List<@R|Anno5|(s = String(1)) kotlin/Int>?
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: Public
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null