FE10 Analysis API: use compact renderer for flexible types even in debug

This commit is contained in:
Mikhail Glukhikh
2022-06-27 11:28:21 +02:00
committed by Space
parent 38f4a35be2
commit 2b235e1188
4 changed files with 15 additions and 24 deletions
@@ -129,15 +129,6 @@ internal class KtFe10TypeRenderer(private val options: KtTypeRendererOptions, pr
}
private fun KtFe10RendererConsumer.renderFlexibleType(type: FlexibleType) {
if (isDebugText) {
append("ft<")
renderType(type.lowerBound)
append(", ")
renderType(type.upperBound)
append(">")
return
}
val lowerBoundText = prettyPrint { renderType(type.lowerBound) }
val upperBoundText = prettyPrint { renderType(type.upperBound) }
append(DescriptorRenderer.COMPACT.renderFlexibleType(lowerBoundText, upperBoundText, type.builtIns))
@@ -6,25 +6,25 @@ KtSuccessCallInfo:
extensionReceiver = null
signature = KtFunctionLikeSignature:
receiverType = null
returnType = java.util.Comparator<ft<kotlin.Int, kotlin.Int?>>
symbol = java/util/Comparator(function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>): java.util.Comparator<T>
returnType = java.util.Comparator<kotlin.Int!>
symbol = java/util/Comparator(function: kotlin.Function2<T!, T!, kotlin.Int>): java.util.Comparator<T>
valueParameters = [
KtVariableLikeSignature:
name = function
receiverType = null
returnType = kotlin.Function2<ft<kotlin.Int, kotlin.Int?>, ft<kotlin.Int, kotlin.Int?>, kotlin.Int>
symbol = function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>
returnType = kotlin.Function2<kotlin.Int!, kotlin.Int!, kotlin.Int>
symbol = function: kotlin.Function2<T!, T!, kotlin.Int>
callableIdIfNonLocal = null
]
callableIdIfNonLocal = java/util/Comparator
typeArgumentsMapping = {
T -> (ft<kotlin.Int, kotlin.Int?>)
T -> (kotlin.Int!)
}
argumentMapping = {
{x: Int, y: Int -> 1} -> (KtVariableLikeSignature:
name = function
receiverType = null
returnType = kotlin.Function2<ft<kotlin.Int, kotlin.Int?>, ft<kotlin.Int, kotlin.Int?>, kotlin.Int>
symbol = function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>
returnType = kotlin.Function2<kotlin.Int!, kotlin.Int!, kotlin.Int>
symbol = function: kotlin.Function2<T!, T!, kotlin.Int>
callableIdIfNonLocal = null)
}
@@ -6,26 +6,26 @@ KtApplicableCallCandidateInfo:
extensionReceiver = null
signature = KtFunctionLikeSignature:
receiverType = null
returnType = java.util.Comparator<ft<kotlin.Int, kotlin.Int?>>
symbol = java/util/Comparator(function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>): java.util.Comparator<T>
returnType = java.util.Comparator<kotlin.Int!>
symbol = java/util/Comparator(function: kotlin.Function2<T!, T!, kotlin.Int>): java.util.Comparator<T>
valueParameters = [
KtVariableLikeSignature:
name = function
receiverType = null
returnType = kotlin.Function2<ft<kotlin.Int, kotlin.Int?>, ft<kotlin.Int, kotlin.Int?>, kotlin.Int>
symbol = function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>
returnType = kotlin.Function2<kotlin.Int!, kotlin.Int!, kotlin.Int>
symbol = function: kotlin.Function2<T!, T!, kotlin.Int>
callableIdIfNonLocal = null
]
callableIdIfNonLocal = java/util/Comparator
typeArgumentsMapping = {
T -> (ft<kotlin.Int, kotlin.Int?>)
T -> (kotlin.Int!)
}
argumentMapping = {
{x: Int, y: Int -> 1} -> (KtVariableLikeSignature:
name = function
receiverType = null
returnType = kotlin.Function2<ft<kotlin.Int, kotlin.Int?>, ft<kotlin.Int, kotlin.Int?>, kotlin.Int>
symbol = function: kotlin.Function2<ft<T, T?>, ft<T, T?>, kotlin.Int>
returnType = kotlin.Function2<kotlin.Int!, kotlin.Int!, kotlin.Int>
symbol = function: kotlin.Function2<T!, T!, kotlin.Int>
callableIdIfNonLocal = null)
}
isInBestCandidates = true
@@ -14,7 +14,7 @@ KtNamedClassOrObjectSymbol:
superTypes: [
kotlin/Any
java/io/Serializable
kotlin/Comparable<ft<kotlin/String, kotlin/String?>>
kotlin/Comparable<kotlin/String!>
kotlin/CharSequence
]
symbolKind: TOP_LEVEL