[code-reflection] Integrated: Stream code elements

Paul Sandoz psandoz at openjdk.org
Sat Feb 17 00:26:02 UTC 2024


On Fri, 16 Feb 2024 19:08:24 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Add a method to `CodeElement`, `elements`, that returns a stream of code elements sorted topologically in pre-order traversal.
> 
> This in many ways is superior to the existing `traverse` method. Using a gatherer it should be possible to short circuit the traversal (which requires throwing a runtime exception when using the `traverse` method).

This pull request has now been integrated.

Changeset: b9f92bbb
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/b9f92bbbbf9c8d4cc33f2768dae95862d701d83a
Stats:     120 lines in 2 files changed: 120 ins; 0 del; 0 mod

Stream code elements

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

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


More information about the babylon-dev mailing list