Kotlin/Java: children consistency query: extension receiver is now a gap

This commit is contained in:
Ian Lynagh
2021-11-29 13:26:24 +00:00
parent 75e22da096
commit 7ca6da1d13

View File

@@ -29,6 +29,8 @@ predicate gapInChildren(Element e, int i) {
and not e instanceof TryStmt
// TODO: Tighten this up:
and not e instanceof ForStmt
// TODO: Tighten this up:
and not e instanceof MethodAccess // extension receiver is now a gap for Java
// Kotlin bug?
and not (e instanceof MethodAccess and e.getFile().getExtension() = "kt")
}