Kotlin: Add support for Kotlin type aliases

This commit is contained in:
Ian Lynagh
2021-11-04 12:41:37 +00:00
parent 8330a404df
commit 87b433142c
4 changed files with 46 additions and 2 deletions

View File

@@ -43,6 +43,8 @@ predicate hasName(Element e, string name) {
arrays(e, name, _, _, _, _, _)
or
modifiers(e, name)
or
kt_type_alias(e, name, _)
}
/**

View File

@@ -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)
}
}