Revert "[AA] Deserialize reference to typealias from stubs as fully expanded"
This reverts commit 3c22b1ce53.
#KT-58335
#KT-58786
This commit is contained in:
committed by
Space Team
parent
363c56e226
commit
8f447e5b78
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user