Kotlin: Add a consistency query for Kotlin types

This commit is contained in:
Ian Lynagh
2022-01-27 13:40:20 +00:00
parent 86bf126ed8
commit 0f7f90dd4e

View File

@@ -0,0 +1,12 @@
import java
predicate badKotlinType(Element e, int i) {
e = any(Expr expr | count(expr.getKotlinType()) = i)
}
from Element e, int i
where e.getFile().isKotlinSourceFile()
and badKotlinType(e, i)
and i != 1
select e, i