Incidental fix to CaseClause.getAnExpr()

This commit is contained in:
Owen Mansel-Chan
2026-06-03 16:38:46 +01:00
parent 1e05710256
commit 412f4c2403

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.