Skip to content

Commit 807f03a

Browse files
committed
Kotlin: Add withHasQuestionMark for older releases
1 parent 4448ba1 commit 807f03a

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.codeql.utils.versions
2+
3+
import org.jetbrains.kotlin.ir.types.IrType
4+
import org.jetbrains.kotlin.ir.types.withHasQuestionMark
5+
6+
fun IrType.codeQlWithHasQuestionMark(b : Boolean): IrType {
7+
return this.withHasQuestionMark(b)
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.codeql.utils.versions
2+
3+
import org.jetbrains.kotlin.ir.types.IrType
4+
import org.jetbrains.kotlin.ir.types.withHasQuestionMark
5+
6+
fun IrType.codeQlWithHasQuestionMark(b : Boolean): IrType {
7+
return this.withHasQuestionMark(b)
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.codeql.utils.versions
2+
3+
import org.jetbrains.kotlin.ir.types.IrType
4+
import org.jetbrains.kotlin.ir.types.withHasQuestionMark
5+
6+
fun IrType.codeQlWithHasQuestionMark(b : Boolean): IrType {
7+
return this.withHasQuestionMark(b)
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.codeql.utils.versions
2+
3+
import org.jetbrains.kotlin.ir.types.IrType
4+
import org.jetbrains.kotlin.ir.types.withHasQuestionMark
5+
6+
fun IrType.codeQlWithHasQuestionMark(b : Boolean): IrType {
7+
return this.withHasQuestionMark(b)
8+
}

0 commit comments

Comments
 (0)