Skip to content

Add support for using a CodeBlock as a value to generate #34759

Closed as not planned
@snicoll

Description

@snicoll

When transforming data in custom code, it would be beneficial to be able to reuse the built-in converters while being able to take control over an element of the chain.

An example is Map<String,T> where T is written as a local variable. Once that's done, it should be possible to let the generator write the code for Map<String,TheNameOfTheField> but such indirection isn't possible at the moment.

Checking if the value is a CodeBlock and then render that as is should help as code generation doesn't have to comply with the actual type of what the generated code represents.

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytheme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions