[code-reflection] Integrated: Obtain parent code element from code element

Paul Sandoz psandoz at openjdk.org
Thu Mar 7 23:03:06 UTC 2024


On Wed, 6 Mar 2024 22:27:45 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> `CodeElement` allows access to its children but not its parent. We can add a method to support that.
> 
> Subclasses `Op`, `Body`, and `Block` have duplicate methods for accessing their parent and children (the subclasses have covariant overrides of the `CodeElement` methods) e.g., `CodeElement::parent` and Op::parentBlock,  `CodeElement::children` and `Op::bodies`. We may not require the subclass specific methods, but i am leaving there for now.

This pull request has now been integrated.

Changeset: 7d651666
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/7d6516667fe7aac0d5ef2d12df77d36ee60c4185
Stats:     146 lines in 4 files changed: 92 ins; 50 del; 4 mod

Obtain parent code element from code element

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

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


More information about the babylon-dev mailing list