FE10 Analysis API: use compact renderer for flexible types even in debug
This commit is contained in:
-9
@@ -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))
|
||||
|
||||
+7
-7
@@ -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)
|
||||
}
|
||||
+7
-7
@@ -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
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user