File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com.github.codeql
2
2
3
3
import com.github.codeql.utils.*
4
+ import com.github.codeql.utils.versions.codeQlWithHasQuestionMark
4
5
import com.github.codeql.utils.versions.isRawType
5
6
import com.semmle.extractor.java.OdasaOutput
6
7
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
@@ -1306,7 +1307,7 @@ open class KotlinUsesExtractor(
1306
1307
if (t.isArray() || t.isNullableArray()) {
1307
1308
val elementType = t.getArrayElementType(pluginContext.irBuiltIns)
1308
1309
val erasedElementType = erase(elementType)
1309
- return withQuestionMark(( classifier as IrClassSymbol ).typeWith(erasedElementType), t.hasQuestionMark)
1310
+ return ( classifier as IrClassSymbol ).typeWith(erasedElementType).codeQlWithHasQuestionMark( t.hasQuestionMark)
1310
1311
}
1311
1312
1312
1313
if (owner is IrClass ) {
@@ -1430,6 +1431,4 @@ open class KotlinUsesExtractor(
1430
1431
return tw.getVariableLabelFor<DbLocalvar >(v)
1431
1432
}
1432
1433
1433
- fun withQuestionMark (t : IrType , hasQuestionMark : Boolean ) = if (hasQuestionMark) t.makeNullable() else t.makeNotNull()
1434
-
1435
1434
}
You can’t perform that action at this time.
0 commit comments