[code-reflection] Integrated: Transformation API changes

Paul Sandoz psandoz at openjdk.org
Fri Aug 1 22:45:16 UTC 2025


On Mon, 14 Jul 2025 20:47:59 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Move transformation of a `Body` starting at a `Block.Builder` to `OpTransformer`, which now has three methods, default method `acceptBody` calls default method `acceptBlock`, which in turn calls abstract method `acceptOp`.
> 
> Simplify the body accepting methods on `Block.Builder` which now defer to `OpTransformer.acceptBody`. Those methods are responsible for rebinding the `Block.Builder` and passing the rebound result to `acceptBody`.

This pull request has now been integrated.

Changeset: 20b98973
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/20b98973c2d3e453942ff34794c62b3f7027cf95
Stats:     222 lines in 16 files changed: 64 ins; 42 del; 116 mod

Transformation API changes

-------------

PR: https://git.openjdk.org/babylon/pull/494


More information about the babylon-dev mailing list