You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dokka-subprojects/analysis-java-psi/src/main/kotlin/org/jetbrains/dokka/analysis/java/parsers/DokkaPsiParser.kt
+45-26
Original file line number
Diff line number
Diff line change
@@ -107,15 +107,11 @@ internal class DokkaPsiParser(
107
107
* - superMethods
108
108
* - superFieldsKeys
109
109
* - superKeys
110
+
*
111
+
* First processes the list of [PsiClassType]s to add their methods and fields to the maps mentioned above,
112
+
* then filters the list to return a pair of the optional superclass type and a list of interface types.
110
113
*/
111
-
/**
112
-
* Caution! This method mutates
113
-
* - superMethodsKeys
114
-
* - superMethods
115
-
* - superFieldsKeys
116
-
* - superKeys
117
-
*/
118
-
fun Array<PsiClassType>.getSuperTypesPsiClasses(): List<Pair<PsiClass, JavaClassKindTypes>> {
114
+
fun List<PsiClassType>.getSuperclassAndInterfaces(): Pair<PsiClassType?, List<PsiClassType>> {
119
115
forEach { type ->
120
116
type.resolve()?.let {
121
117
val definedAt =DRI.from(it)
@@ -137,38 +133,61 @@ internal class DokkaPsiParser(
0 commit comments