autoformat

This commit is contained in:
Chris Smowton
2023-11-06 12:16:40 +00:00
parent 9035ba1f30
commit 0e3f6f7873

View File

@@ -1674,14 +1674,10 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
/**
* Gets the instanceof expression whose pattern declares this identifier, if any.
*/
InstanceOfExpr getAssociatedInstanceOfExpr() {
result.getPattern().getAChildExpr*() = this
}
InstanceOfExpr getAssociatedInstanceOfExpr() { result.getPattern().getAChildExpr*() = this }
/** Holds f this is a declaration stemming from a pattern instanceof expression. */
predicate hasAssociatedInstanceOfExpr() {
exists(this.getAssociatedInstanceOfExpr())
}
predicate hasAssociatedInstanceOfExpr() { exists(this.getAssociatedInstanceOfExpr()) }
/** Gets the initializer expression of this local variable declaration expression, if any. */
Expr getInit() { result.isNthChildOf(this, 0) }