[code-reflection] Withdrawn: Make Op.setLocation fluent friendly by returning Op
Gary Frost
gfrost at openjdk.org
Tue Feb 3 13:50:10 UTC 2026
On Mon, 5 Jan 2026 13:24:15 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> This one change simplifies a bunch of code.
>
> We frequently had this pattern
>
> var opToReplace = .....;
> var newOp = new MyNewOp(...);
> newOp.setLocation(opToReplace.getLocation());
> builder.op(newOp);
>
> We were forced to catch the newOp just to set its location.
>
> This change allows
>
> builder.op( new myNewOp(....)
> .setLocation(opToReplace)
> );
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/babylon/pull/811
More information about the babylon-dev
mailing list