FIR: don't render resolved type annotations in favor of attributes

This commit is contained in:
Mikhail Glukhikh
2021-06-01 16:59:38 +03:00
committed by teamcityserver
parent 06379ec587
commit c33608e009
15 changed files with 23 additions and 29 deletions
@@ -1001,12 +1001,6 @@ class FirRenderer(builder: StringBuilder, private val mode: RenderMode = RenderM
override fun visitResolvedTypeRef(resolvedTypeRef: FirResolvedTypeRef) {
val kind = resolvedTypeRef.functionTypeKind
val annotations = if (kind.withPrettyRender()) {
resolvedTypeRef.annotations.dropExtensionFunctionAnnotation()
} else {
resolvedTypeRef.annotations
}
annotations.renderAnnotations()
print("R|")
val coneType = resolvedTypeRef.type
print(coneType.renderFunctionType(kind, resolvedTypeRef.annotations.any {