mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Kotlin: Add comment describing Kotlin array predicates
This commit is contained in:
@@ -551,6 +551,20 @@ open class KotlinUsesExtractor(
|
||||
)
|
||||
}
|
||||
|
||||
/*
|
||||
Kotlin arrays can be broken down as:
|
||||
|
||||
isArray(t)
|
||||
|- t.isBoxedArray
|
||||
| |- t.isArray() e.g. Array<Boolean>, Array<Boolean?>
|
||||
| |- t.isNullableArray() e.g. Array<Boolean>?, Array<Boolean?>?
|
||||
|- t.isPrimitiveArray() e.g. BooleanArray
|
||||
|
||||
For the corresponding Java types:
|
||||
Boxed arrays are represented as e.g. java.lang.Boolean[].
|
||||
Primitive arrays are represented as e.g. boolean[].
|
||||
*/
|
||||
|
||||
data class ArrayInfo(val elementTypeResults: TypeResults,
|
||||
val componentTypeResults: TypeResults,
|
||||
val dimensions: Int)
|
||||
|
||||
Reference in New Issue
Block a user