mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Kotlin: Add support for Kotlin type aliases
This commit is contained in:
@@ -43,6 +43,8 @@ predicate hasName(Element e, string name) {
|
||||
arrays(e, name, _, _, _, _, _)
|
||||
or
|
||||
modifiers(e, name)
|
||||
or
|
||||
kt_type_alias(e, name, _)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,3 +25,10 @@ class KotlinNotnullType extends KotlinType, @kt_notnull_type {
|
||||
override string getAPrimaryQlClass() { result = "KotlinNotnullType" }
|
||||
}
|
||||
|
||||
class KotlinTypeAlias extends Element, @kt_type_alias {
|
||||
override string getAPrimaryQlClass() { result = "KotlinTypeAlias" }
|
||||
|
||||
KotlinType getKotlinType() {
|
||||
kt_type_alias(this, _, result)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user