[code-reflection] Integrated: Hat make all c99 and java code builders scope aware
Gary Frost
gfrost at openjdk.org
Thu Jan 15 15:08:14 UTC 2026
On Thu, 15 Jan 2026 14:59:19 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Previously Java and C99 code builders had to pass a ScopedBuildContext to some calls to resolve vars (they resolve differenlly depending on whether we are building a for loop, or an iff block.
>
> Here we have made all Java and C99 code builders scope aware. So we don't have to pass the scope builders around.
>
> This temporarily made building schemas more versbose (we have to make a scope builder available when building, but this should really be a no-op for just creating typedefs), I will come back (next PR) and fix this.
>
> I also adde scope resolution for lambda's so we can properly reify lambdas in the JavaCodeBuilder.
>
> Sorry this code touched a lot of files.
This pull request has now been integrated.
Changeset: 3cec53fa
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/3cec53fa410d2d22da2dbfbce9a04b9871f5da7b
Stats: 672 lines in 36 files changed: 175 ins; 46 del; 451 mod
Hat make all c99 and java code builders scope aware
-------------
PR: https://git.openjdk.org/babylon/pull/847
More information about the babylon-dev
mailing list