Revert "[AA] Deserialize reference to typealias from stubs as fully expanded"

This reverts commit 3c22b1ce53.

#KT-58335
#KT-58786
This commit is contained in:
Kirill Rakhman
2023-05-19 10:41:31 +02:00
committed by Space Team
parent 363c56e226
commit 8f447e5b78
3 changed files with 45 additions and 67 deletions
@@ -40,7 +40,11 @@ class TypeClsStubBuilder(private val c: ClsStubBuilderContext) {
additionalAnnotations: () -> List<AnnotationWithTarget> = { emptyList() },
loadTypeAnnotations: (Type) -> List<AnnotationWithArgs> = { c.components.annotationLoader.loadTypeAnnotations(it, c.nameResolver) }
) {
// TODO: Return abbreviated type aliases, see KT-58542
val abbreviatedType = type.abbreviatedType(c.typeTable)
if (abbreviatedType != null) {
return createTypeReferenceStub(parent, abbreviatedType, additionalAnnotations)
}
val typeReference = KotlinPlaceHolderStubImpl<KtTypeReference>(parent, KtStubElementTypes.TYPE_REFERENCE)
val allAnnotationsInType = loadTypeAnnotations(type)