mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Kotlin: Add ability to give more type contexts
This commit is contained in:
@@ -1018,7 +1018,7 @@ open class KotlinFileExtractor(
|
||||
) {
|
||||
for (argIdx in 0 until c.typeArgumentsCount) {
|
||||
val arg = c.getTypeArgument(argIdx)!!
|
||||
val argType = useType(arg, false)
|
||||
val argType = useType(arg, TypeContext.GENERIC_ARGUMENT)
|
||||
val argId = tw.getFreshIdLabel<DbUnannotatedtypeaccess>()
|
||||
val mul = if (reverse) -1 else 1
|
||||
tw.writeExprs_unannotatedtypeaccess(argId, argType.javaResult.id, argType.kotlinResult.id, id, argIdx * mul + startIndex)
|
||||
|
||||
Reference in New Issue
Block a user