[AA Standalone] Consider type aliases in direct inheritors search

A type alias may still be inherited from. For example:

```
sealed class MyClass

typealias T = MyClass

class Inheritor : T() // `Inheritor` is a direct inheritor of `MyClass`.
```

The index is a simplified version of the IDE's
`KotlinTypeAliasByExpansionShortNameIndex`, but it should be sufficient
for virtually all cases.

^KT-66013
This commit is contained in:
Marco Pennekamp
2024-02-29 20:18:45 +01:00
committed by Space Team
parent 54f2655b4d
commit a9d7b0c595
8 changed files with 130 additions and 14 deletions
@@ -1,2 +1,8 @@
/OneSealedChild
class OneSealedChild : MySealedClass()
/ThreeSealedChild
class ThreeSealedChild : T2()
/TwoSealedChild
class TwoSealedChild : T1()
@@ -1,2 +1,8 @@
/OneSealedChild
class OneSealedChild : MySealedClass()
/ThreeSealedChild
class ThreeSealedChild : T2()
/TwoSealedChild
class TwoSealedChild : T1()
@@ -1,2 +1,8 @@
/OneSealedChild
class OneSealedChild : MySealedInterface
/ThreeSealedChild
class ThreeSealedChild : T2
/TwoSealedChild
class TwoSealedChild : T1
@@ -1,2 +1,8 @@
/OneSealedChild
class OneSealedChild : MySealedInterface
/ThreeSealedChild
class ThreeSealedChild : T2
/TwoSealedChild
class TwoSealedChild : T1