Skip to content

Commit 084222e

Browse files
committed
Inline version-specific override code where there is now only one version
1 parent 79171a9 commit 084222e

File tree

8 files changed

+4
-23
lines changed

8 files changed

+4
-23
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8053,7 +8053,7 @@ open class KotlinFileExtractor(
80538053
?.symbol
80548054
?.typeWithArguments(listOf(functionNTypeArguments.last()))
80558055
else
8056-
functionN(pluginContext)(functionNTypeArguments.size - 1)
8056+
pluginContext.irBuiltIns.functionN(functionNTypeArguments.size - 1)
80578057
.symbol
80588058
.typeWithArguments(functionNTypeArguments)
80598059

java/kotlin-extractor/src/main/kotlin/MetaAnnotationSupport.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.github.codeql
22

33
import com.github.codeql.utils.versions.copyParameterToFunction
44
import com.github.codeql.utils.versions.createImplicitParameterDeclarationWithWrappedDescriptor
5-
import com.github.codeql.utils.versions.getAnnotationType
65
import java.lang.annotation.ElementType
76
import java.util.HashSet
87
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
@@ -375,7 +374,7 @@ class MetaAnnotationSupport(
375374
.apply {
376375
createImplicitParameterDeclarationWithWrappedDescriptor()
377376
parent = annotationClass
378-
superTypes = listOf(getAnnotationType(pluginContext))
377+
superTypes = listOf(pluginContext.irBuiltIns.annotationType)
379378
}
380379

381380
val propertyName = Name.identifier("value")

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/FileEntry.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/Functions.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/IrBuiltIns.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/annotationType.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/typeUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.github.codeql.utils.versions
22

33
import org.jetbrains.kotlin.ir.types.*
4+
import org.jetbrains.kotlin.ir.IrBuiltIns
45

56
fun IrType.isNullableCodeQL(): Boolean =
67
this.isNullable()

java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_1_20-Beta1/typeUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.github.codeql.utils.versions
22

33
import org.jetbrains.kotlin.ir.types.IrType
44
import org.jetbrains.kotlin.ir.util.*
5+
import org.jetbrains.kotlin.ir.IrBuiltIns
56

67
fun IrType.isNullableCodeQL(): Boolean =
78
this.isNullable()

0 commit comments

Comments
 (0)