Add comment explaining RawExpression usage

This commit is contained in:
J. Nick Koston
2026-03-25 15:21:55 -10:00
parent a90a2b1d62
commit bd69737878
+3
View File
@@ -701,4 +701,7 @@ async def build_callback_automation(
# data in the struct.
if forwarder is None:
forwarder = TriggerForwarder.template(templ)
# RawExpression for aggregate init — both forwarder and obj are codegen
# MockObjs (not user input), and there's no Expression type for positional
# aggregate initialization (StructInitializer uses named fields).
cg.add(getattr(parent, callback_method)(cg.RawExpression(f"{forwarder}{{{obj}}}")))