mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Merge pull request #10193 from igfoo/igfoo/extractClassSupertypes
Kotlin: Small simplification
This commit is contained in:
@@ -1415,12 +1415,11 @@ open class KotlinUsesExtractor(
|
||||
for(t in subbedSupertypes) {
|
||||
when(t) {
|
||||
is IrSimpleType -> {
|
||||
when (t.classifier.owner) {
|
||||
val owner = t.classifier.owner
|
||||
when (owner) {
|
||||
is IrClass -> {
|
||||
val classifier: IrClassifierSymbol = t.classifier
|
||||
val tcls: IrClass = classifier.owner as IrClass
|
||||
val typeArgs = if (t.arguments.isNotEmpty() && mode is ExtractSupertypesMode.Raw) null else t.arguments
|
||||
val l = useClassInstance(tcls, typeArgs, inReceiverContext).typeResult.id
|
||||
val l = useClassInstance(owner, typeArgs, inReceiverContext).typeResult.id
|
||||
tw.writeExtendsReftype(id, l)
|
||||
}
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user