[AA] DebugSymbolRenderer: improve type render

to process all nested annotations and types

^KT-56046
This commit is contained in:
Dmitrii Gridin
2023-01-26 12:48:59 +01:00
committed by Space Team
parent 0a06efa1bf
commit 1e2d517c21
282 changed files with 9169 additions and 2392 deletions
@@ -13,7 +13,10 @@ KtNamedClassOrObjectSymbol:
name: Lazy
origin: LIBRARY
superTypes: [
kotlin/Any
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,7 +13,10 @@ KtNamedClassOrObjectSymbol:
name: Lazy
origin: LIBRARY
superTypes: [
kotlin/Any
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,10 +13,26 @@ KtNamedClassOrObjectSymbol:
name: String
origin: JAVA
superTypes: [
kotlin/Any
java/io/Serializable
kotlin/Comparable<kotlin/String!>
kotlin/CharSequence
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: java/io/Serializable
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/Comparable<kotlin/String!>
annotationsList: []
ownTypeArguments: [
KtFlexibleType:
type: kotlin/String!
annotationsList: []
]
KtUsualClassType:
type: kotlin/CharSequence
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: []
@@ -13,10 +13,26 @@ KtNamedClassOrObjectSymbol:
name: String
origin: JAVA
superTypes: [
kotlin/Any
java/io/Serializable
kotlin/Comparable<kotlin/String!>
kotlin/CharSequence
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: java/io/Serializable
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/Comparable<kotlin/String!>
annotationsList: []
ownTypeArguments: [
KtFlexibleType:
type: kotlin/String!
annotationsList: []
]
KtUsualClassType:
type: kotlin/CharSequence
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: []
@@ -7,7 +7,10 @@ KtEnumEntrySymbol:
name: SYNCHRONIZED
origin: LIBRARY
receiverParameter: null
returnType: kotlin/LazyThreadSafetyMode
returnType: KtUsualClassType:
type: kotlin/LazyThreadSafetyMode
annotationsList: []
ownTypeArguments: []
symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescEnumEntrySymbol
@@ -7,7 +7,10 @@ KtEnumEntrySymbol:
name: SYNCHRONIZED
origin: LIBRARY
receiverParameter: null
returnType: kotlin/LazyThreadSafetyMode
returnType: KtUsualClassType:
type: kotlin/LazyThreadSafetyMode
annotationsList: []
ownTypeArguments: []
symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: KtLibraryModule "Library kotlin-stdlib"
@@ -17,7 +17,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -37,7 +44,9 @@ KtFunctionSymbol:
name: element
origin: SOURCE
receiverParameter: null
returnType: T
returnType: KtTypeParameterType:
type: T
annotationsList: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescValueParameterSymbol
@@ -70,7 +79,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -99,7 +115,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -119,7 +142,9 @@ KtFunctionSymbol:
name: elements
origin: SOURCE
receiverParameter: null
returnType: T
returnType: KtTypeParameterType:
type: T
annotationsList: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescValueParameterSymbol
@@ -17,7 +17,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -37,7 +44,9 @@ KtFunctionSymbol:
name: element
origin: LIBRARY
receiverParameter: null
returnType: T
returnType: KtTypeParameterType:
type: T
annotationsList: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtLibraryModule "Library kotlin-stdlib"
@@ -69,7 +78,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -98,7 +114,14 @@ KtFunctionSymbol:
name: listOf
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/List<T>
returnType: KtUsualClassType:
type: kotlin/collections/List<T>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: T
annotationsList: []
]
symbolKind: TOP_LEVEL
typeParameters: [
KtTypeParameterSymbol(T)
@@ -118,7 +141,9 @@ KtFunctionSymbol:
name: elements
origin: LIBRARY
receiverParameter: null
returnType: T
returnType: KtTypeParameterType:
type: T
annotationsList: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtLibraryModule "Library kotlin-stdlib"
@@ -13,7 +13,10 @@ KtNamedClassOrObjectSymbol:
name: Iterator
origin: LIBRARY
superTypes: [
kotlin/Any
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,7 +13,10 @@ KtNamedClassOrObjectSymbol:
name: Iterator
origin: LIBRARY
superTypes: [
kotlin/Any
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,9 +13,18 @@ KtNamedClassOrObjectSymbol:
name: KClass
origin: LIBRARY
superTypes: [
kotlin/reflect/KDeclarationContainer
kotlin/reflect/KAnnotatedElement
kotlin/reflect/KClassifier
KtUsualClassType:
type: kotlin/reflect/KDeclarationContainer
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/reflect/KAnnotatedElement
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/reflect/KClassifier
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,9 +13,18 @@ KtNamedClassOrObjectSymbol:
name: KClass
origin: LIBRARY
superTypes: [
kotlin/reflect/KDeclarationContainer
kotlin/reflect/KAnnotatedElement
kotlin/reflect/KClassifier
KtUsualClassType:
type: kotlin/reflect/KDeclarationContainer
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/reflect/KAnnotatedElement
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/reflect/KClassifier
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: [
@@ -13,7 +13,15 @@ KtNamedClassOrObjectSymbol:
name: FileWalkDirection
origin: LIBRARY
superTypes: [
kotlin/Enum<kotlin/io/FileWalkDirection>
KtUsualClassType:
type: kotlin/Enum<kotlin/io/FileWalkDirection>
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
type: kotlin/io/FileWalkDirection
annotationsList: []
ownTypeArguments: []
]
]
symbolKind: TOP_LEVEL
typeParameters: []
@@ -13,7 +13,15 @@ KtNamedClassOrObjectSymbol:
name: FileWalkDirection
origin: LIBRARY
superTypes: [
kotlin/Enum<kotlin/io/FileWalkDirection>
KtUsualClassType:
type: kotlin/Enum<kotlin/io/FileWalkDirection>
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
type: kotlin/io/FileWalkDirection
annotationsList: []
ownTypeArguments: []
]
]
symbolKind: TOP_LEVEL
typeParameters: []
@@ -17,7 +17,9 @@ KtFunctionSymbol:
name: get
origin: LIBRARY
receiverParameter: null
returnType: E
returnType: KtTypeParameterType:
type: E
annotationsList: []
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
@@ -35,7 +37,10 @@ KtFunctionSymbol:
name: index
origin: SOURCE
receiverParameter: null
returnType: kotlin/Int
returnType: KtUsualClassType:
type: kotlin/Int
annotationsList: []
ownTypeArguments: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescValueParameterSymbol
@@ -43,7 +48,14 @@ KtFunctionSymbol:
deprecationStatus: null
]
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: Could not render due to java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.kotlin.JvmPackagePartSource
deprecationStatus: null
@@ -17,7 +17,9 @@ KtFunctionSymbol:
name: get
origin: LIBRARY
receiverParameter: null
returnType: E
returnType: KtTypeParameterType:
type: E
annotationsList: []
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
@@ -35,13 +37,23 @@ KtFunctionSymbol:
name: index
origin: LIBRARY
receiverParameter: null
returnType: kotlin/Int
returnType: KtUsualClassType:
type: kotlin/Int
annotationsList: []
ownTypeArguments: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtBinaryModule "Builtins for JVM (1.8)"
deprecationStatus: null
]
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: KtBinaryModule "Builtins for JVM (1.8)"
deprecationStatus: null
@@ -17,12 +17,26 @@ KtFunctionSymbol:
name: listIterator
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/ListIterator<E>
returnType: KtUsualClassType:
type: kotlin/collections/ListIterator<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: Could not render due to java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.kotlin.JvmPackagePartSource
deprecationStatus: null
@@ -46,7 +60,14 @@ KtFunctionSymbol:
name: listIterator
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/ListIterator<E>
returnType: KtUsualClassType:
type: kotlin/collections/ListIterator<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
@@ -64,7 +85,10 @@ KtFunctionSymbol:
name: index
origin: SOURCE
receiverParameter: null
returnType: kotlin/Int
returnType: KtUsualClassType:
type: kotlin/Int
annotationsList: []
ownTypeArguments: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: Could not render due to kotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.KtFe10DescValueParameterSymbol
@@ -72,7 +96,14 @@ KtFunctionSymbol:
deprecationStatus: null
]
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: Could not render due to java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.kotlin.JvmPackagePartSource
deprecationStatus: null
@@ -17,12 +17,26 @@ KtFunctionSymbol:
name: listIterator
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/ListIterator<E>
returnType: KtUsualClassType:
type: kotlin/collections/ListIterator<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: KtBinaryModule "Builtins for JVM (1.8)"
deprecationStatus: null
@@ -45,7 +59,14 @@ KtFunctionSymbol:
name: listIterator
origin: LIBRARY
receiverParameter: null
returnType: kotlin/collections/ListIterator<E>
returnType: KtUsualClassType:
type: kotlin/collections/ListIterator<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
@@ -63,13 +84,23 @@ KtFunctionSymbol:
name: index
origin: LIBRARY
receiverParameter: null
returnType: kotlin/Int
returnType: KtUsualClassType:
type: kotlin/Int
annotationsList: []
ownTypeArguments: []
symbolKind: LOCAL
typeParameters: []
getContainingModule: KtBinaryModule "Builtins for JVM (1.8)"
deprecationStatus: null
]
visibility: Public
getDispatchReceiver(): kotlin/collections/List<E>
getDispatchReceiver(): KtUsualClassType:
type: kotlin/collections/List<E>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: E
annotationsList: []
]
getContainingModule: KtBinaryModule "Builtins for JVM (1.8)"
deprecationStatus: null
@@ -13,7 +13,17 @@ KtNamedClassOrObjectSymbol:
name: MutableEntry
origin: LIBRARY
superTypes: [
kotlin/collections/Map.Entry<K, V>
KtUsualClassType:
type: kotlin/collections/Map.Entry<K, V>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: K
annotationsList: []
KtTypeParameterType:
type: V
annotationsList: []
]
]
symbolKind: CLASS_MEMBER
typeParameters: [
@@ -13,7 +13,17 @@ KtNamedClassOrObjectSymbol:
name: MutableEntry
origin: LIBRARY
superTypes: [
kotlin/collections/Map.Entry<K, V>
KtUsualClassType:
type: kotlin/collections/Map.Entry<K, V>
annotationsList: []
ownTypeArguments: [
KtTypeParameterType:
type: K
annotationsList: []
KtTypeParameterType:
type: V
annotationsList: []
]
]
symbolKind: CLASS_MEMBER
typeParameters: [
@@ -1,7 +1,26 @@
KtTypeAliasSymbol:
annotationsList: []
classIdIfNonLocal: kotlin/DeepRecursiveFunctionBlock
expandedType: kotlin/coroutines/SuspendFunction2<kotlin/DeepRecursiveScope<*, *>, kotlin/Any?, kotlin/Any?>
expandedType: KtFunctionalType:
type: kotlin/coroutines/SuspendFunction2<kotlin/DeepRecursiveScope<*, *>, kotlin/Any?, kotlin/Any?>
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
type: kotlin/DeepRecursiveScope<*, *>
annotationsList: []
ownTypeArguments: [
*
*
]
KtUsualClassType:
type: kotlin/Any?
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/Any?
annotationsList: []
ownTypeArguments: []
]
name: DeepRecursiveFunctionBlock
origin: LIBRARY
symbolKind: TOP_LEVEL
@@ -1,11 +1,30 @@
KtTypeAliasSymbol:
annotationsList: []
classIdIfNonLocal: kotlin/DeepRecursiveFunctionBlock
expandedType: @ExtensionFunctionType kotlin/coroutines/SuspendFunction2<kotlin/DeepRecursiveScope<*, *>, kotlin/Any?, kotlin/Any?>
expandedType: KtFunctionalType:
type: @ExtensionFunctionType kotlin/coroutines/SuspendFunction2<kotlin/DeepRecursiveScope<*, *>, kotlin/Any?, kotlin/Any?>
annotationsList: []
ownTypeArguments: [
KtUsualClassType:
type: kotlin/DeepRecursiveScope<*, *>
annotationsList: []
ownTypeArguments: [
*
*
]
KtUsualClassType:
type: kotlin/Any?
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: kotlin/Any?
annotationsList: []
ownTypeArguments: []
]
name: DeepRecursiveFunctionBlock
origin: LIBRARY
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Private
getContainingModule: KtLibraryModule "Library kotlin-stdlib"
deprecationStatus: null
deprecationStatus: null
@@ -16,7 +16,10 @@ KtNamedClassOrObjectSymbol:
name: MyClass
origin: SOURCE
superTypes: [
kotlin/Any
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: []
@@ -16,8 +16,14 @@ KtNamedClassOrObjectSymbol:
name: MyClass
origin: SOURCE
superTypes: [
kotlin/Any
foo/MyInterface
KtUsualClassType:
type: kotlin/Any
annotationsList: []
ownTypeArguments: []
KtUsualClassType:
type: foo/MyInterface
annotationsList: []
ownTypeArguments: []
]
symbolKind: TOP_LEVEL
typeParameters: []