mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
KotlinType: accept non-class-or-interface Java types
This commit is contained in:
committed by
Ian Lynagh
parent
1d95431a7a
commit
805b54897e
@@ -9,18 +9,18 @@ class KotlinType extends Element, @kt_type {
|
||||
|
||||
class KotlinNullableType extends KotlinType, @kt_nullable_type {
|
||||
override string toString() {
|
||||
exists(ClassOrInterface ci |
|
||||
kt_nullable_types(this, ci) and
|
||||
result = "Kotlin nullable " + ci.toString())
|
||||
exists(RefType javaType |
|
||||
kt_nullable_types(this, javaType) and
|
||||
result = "Kotlin nullable " + javaType.toString())
|
||||
}
|
||||
override string getAPrimaryQlClass() { result = "KotlinNullableType" }
|
||||
}
|
||||
|
||||
class KotlinNotnullType extends KotlinType, @kt_notnull_type {
|
||||
override string toString() {
|
||||
exists(ClassOrInterface ci |
|
||||
kt_notnull_types(this, ci) and
|
||||
result = "Kotlin not-null " + ci.toString())
|
||||
exists(RefType javaType |
|
||||
kt_notnull_types(this, javaType) and
|
||||
result = "Kotlin not-null " + javaType.toString())
|
||||
}
|
||||
override string getAPrimaryQlClass() { result = "KotlinNotnullType" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user