mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Kotlin: Add KotlinTypes to arrays
This commit is contained in:
@@ -511,9 +511,9 @@ class X {
|
||||
|
||||
s.isArray() && s.arguments.isNotEmpty() -> {
|
||||
// TODO: fix this, this is only a dummy implementation to let the tests pass
|
||||
val elementType = useTypeOld(s.getArrayElementType(pluginContext.irBuiltIns))
|
||||
val elementType = useType(s.getArrayElementType(pluginContext.irBuiltIns))
|
||||
val id = tw.getLabelFor<DbArray>("@\"array;1;{$elementType}\"")
|
||||
tw.writeArrays(id, "ARRAY", elementType, 1, elementType)
|
||||
tw.writeArrays(id, "ARRAY", elementType.javaResult.id, elementType.kotlinResult.id, 1, elementType.javaResult.id, elementType.kotlinResult.id)
|
||||
val javaSignature = "an array" // TODO: Wrong
|
||||
val javaResult = TypeResult(id, javaSignature)
|
||||
val aClassId = makeClass("kotlin", "Array") // TODO: Wrong
|
||||
|
||||
Reference in New Issue
Block a user