Incidental fix to CaseClause.getAnExpr()

This commit is contained in:
Owen Mansel-Chan
2026-06-03 16:38:46 +01:00
parent 6f93a7189f
commit 2a3be26f70

View File

@@ -761,7 +761,7 @@ class CaseClause extends @caseclause, Stmt, ScopeNode {
*
* Note that the default clause does not have any expressions.
*/
Expr getAnExpr() { result = this.getAChildExpr() }
Expr getAnExpr() { result = this.getExpr(_) }
/**
* Gets the number of expressions of this `case` clause.