Integrated: 7903595: Leverage String templates

Jorn Vernee jvernee at openjdk.org
Tue Nov 28 10:20:43 UTC 2023


On Mon, 27 Nov 2023 18:11:32 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Leverage string templates for source code generation. This makes it much easier to see at a glance what the code that is being generated looks like. It's also a very convenient way of writing this kind of code going forward, and is a good test for the new language feature.
> 
> Note that I didn't touch the `Constants::emitLayoutField` and `Constants::emitFunctionDescField`, since they do some pretty complex inline generation to render layouts. I didn't feel like this was worth messing with since we are planning to replace the separate constant classes nay way. Though, I did re-write some of the other methods in `Constants` since they were low-hanging fruits.

This pull request has now been integrated.

Changeset: 82952701
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/82952701b8fbea68382ba2968e2eaccbe5499745
Stats:     543 lines in 6 files changed: 104 ins; 253 del; 186 mod

7903595: Leverage String templates

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.org/jextract/pull/144


More information about the jextract-dev mailing list