[code-reflection] Integrated: Hide implementation computing global names
Paul Sandoz
psandoz at openjdk.org
Wed Feb 7 20:09:12 UTC 2024
On Wed, 31 Jan 2024 23:14:36 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> `OpWriter` is updated to accept a function for computing the names of blocks and values, which is also made accessible.
>
> The default implement is now embedded in `OpWriter`, so we can remove the writer impl package.
>
> A separate method is added to compute the global names for blocks and values using the same algorithm that `OpWriter` uses. This is useful for debugging when names need to be printed in context to the textual form of the model.
>
> A new top-level sealed class `CodeItem` was introduced so we can refer to either blocks or values without resorting to `Object`. We shall see if this remains a useful top-level abstraction.
This pull request has now been integrated.
Changeset: 72191af7
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/72191af726a846e1e861137c134856e657b7869d
Stats: 333 lines in 9 files changed: 227 ins; 63 del; 43 mod
Hide implementation computing global names
-------------
PR: https://git.openjdk.org/babylon/pull/13
More information about the babylon-dev
mailing list