Kapt: Fix type arguments order for JeDeclaredType, should not use substitutor
(cherry picked from commit a9c77e1)
This commit is contained in:
committed by
Yan Zhulanow
parent
d07e6c752b
commit
46f9e02c06
+1
-9
@@ -52,15 +52,7 @@ class JeDeclaredType(
|
|||||||
if (psiType.isRaw) return emptyList()
|
if (psiType.isRaw) return emptyList()
|
||||||
|
|
||||||
return when (psiType) {
|
return when (psiType) {
|
||||||
is PsiClassReferenceType -> {
|
is PsiClassReferenceType -> psiType.parameters.map { it.toJeType(psiManager) }
|
||||||
val substitutor = psiType.resolveGenerics().substitutor
|
|
||||||
if (substitutor.isValid) {
|
|
||||||
substitutor.substitutionMap.map { it.value.toJeType(psiManager) }
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
emptyList()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else -> emptyList()
|
else -> emptyList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user