Kotlin: Pull Kotlin type for methods/constrs out into their own tables

This commit is contained in:
Ian Lynagh
2022-01-27 14:21:03 +00:00
parent ee008773dc
commit dc26abe341
10 changed files with 53 additions and 35 deletions

View File

@@ -138,11 +138,11 @@ class AnnotationType extends Interface {
/** Gets the annotation element with the specified `name`. */
AnnotationElement getAnnotationElement(string name) {
methods(result, _, _, _, _, this, _) and result.hasName(name)
methods(result, _, _, _, this, _) and result.hasName(name)
}
/** Gets an annotation element that is a member of this annotation type. */
AnnotationElement getAnAnnotationElement() { methods(result, _, _, _, _, this, _) }
AnnotationElement getAnAnnotationElement() { methods(result, _, _, _, this, _) }
/** Holds if this annotation type is annotated with the meta-annotation `@Inherited`. */
predicate isInherited() {
@@ -158,8 +158,8 @@ class AnnotationElement extends Member {
AnnotationElement() { isAnnotElem(this) }
/** Gets the type of this annotation element. */
Type getType() { methods(this, _, _, result, _, _, _) }
Type getType() { methods(this, _, _, result, _, _) }
/** Gets the Kotlin type of this annotation element. */
KotlinType getKotlinType() { methods(this, _, _, _, result, _, _) }
KotlinType getKotlinType() { methodsKotlinType(this, result) }
}