Add support for using a CodeBlock as a value to generate #34759
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
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>
whereT
is written as a local variable. Once that's done, it should be possible to let the generator write the code forMap<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.The text was updated successfully, but these errors were encountered: