@@ -361,22 +361,22 @@ class CaseExpr extends ControlExpr instanceof CaseExprImpl {
361361 final Expr getValue ( ) { result = super .getValue ( ) }
362362
363363 /**
364- * Gets the `n`th branch of this case expression, either a `WhenExpr `, an
364+ * Gets the `n`th branch of this case expression, either a `WhenClause `, an
365365 * `InClause`, or a `StmtSequence`.
366366 */
367- final Expr getBranch ( int n ) { result = super .getBranch ( n ) }
367+ final AstNode getBranch ( int n ) { result = super .getBranch ( n ) }
368368
369369 /**
370- * Gets a branch of this case expression, either a `WhenExpr `, an
370+ * Gets a branch of this case expression, either a `WhenClause `, an
371371 * `InClause`, or a `StmtSequence`.
372372 */
373- final Expr getABranch ( ) { result = this .getBranch ( _) }
373+ final AstNode getABranch ( ) { result = this .getBranch ( _) }
374374
375375 /** Gets the `n`th `when` branch of this case expression. */
376- deprecated final WhenExpr getWhenBranch ( int n ) { result = this .getBranch ( n ) }
376+ deprecated final WhenClause getWhenBranch ( int n ) { result = this .getBranch ( n ) }
377377
378378 /** Gets a `when` branch of this case expression. */
379- deprecated final WhenExpr getAWhenBranch ( ) { result = this .getABranch ( ) }
379+ deprecated final WhenClause getAWhenBranch ( ) { result = this .getABranch ( ) }
380380
381381 /** Gets the `else` branch of this case expression, if any. */
382382 final StmtSequence getElseBranch ( ) { result = this .getABranch ( ) }
@@ -401,6 +401,11 @@ class CaseExpr extends ControlExpr instanceof CaseExprImpl {
401401 }
402402}
403403
404+ /**
405+ * DEPRECATED: Use `WhenClause` instead.
406+ */
407+ deprecated class WhenExpr = WhenClause ;
408+
404409/**
405410 * A `when` branch of a `case` expression.
406411 * ```rb
@@ -409,12 +414,12 @@ class CaseExpr extends ControlExpr instanceof CaseExprImpl {
409414 * end
410415 * ```
411416 */
412- class WhenExpr extends Expr , TWhenExpr {
417+ class WhenClause extends AstNode , TWhenClause {
413418 private Ruby:: When g ;
414419
415- WhenExpr ( ) { this = TWhenExpr ( g ) }
420+ WhenClause ( ) { this = TWhenClause ( g ) }
416421
417- final override string getAPrimaryQlClass ( ) { result = "WhenExpr " }
422+ final override string getAPrimaryQlClass ( ) { result = "WhenClause " }
418423
419424 /** Gets the body of this case-when expression. */
420425 final Stmt getBody ( ) { toGenerated ( result ) = g .getBody ( ) }
@@ -461,7 +466,7 @@ class WhenExpr extends Expr, TWhenExpr {
461466 * end
462467 * ```
463468 */
464- class InClause extends Expr , TInClause {
469+ class InClause extends AstNode , TInClause {
465470 private Ruby:: InClause g ;
466471
467472 InClause ( ) { this = TInClause ( g ) }
0 commit comments