Java: Rename ReturnStmt.getResult to getExpr.

This commit is contained in:
Anders Schack-Mulligen
2026-02-04 13:56:50 +01:00
parent 36fa0a22f9
commit 6f40ac15b4
51 changed files with 75 additions and 70 deletions

View File

@@ -627,8 +627,15 @@ class SynchronizedStmt extends Stmt, @synchronizedstmt {
/** A `return` statement. */
class ReturnStmt extends Stmt, @returnstmt {
/**
* DEPRECATED: Use getExpr() instead.
*
* Gets the expression returned by this `return` statement, if any.
*/
deprecated Expr getResult() { result.getParent() = this }
/** Gets the expression returned by this `return` statement, if any. */
Expr getResult() { result.getParent() = this }
Expr getExpr() { result.getParent() = this }
override string pp() { result = "return ..." }