I have a template switch
where, based on the node's concept, I want to create runtime objects using that node's properties and/or children. The right-hand side of each case is an inline template. How do I access node's properties/children from that inline template? More specifically, in the screenshot below, the arguments to the line()
and rectangle()
methods need to be extracted from the corresponding LineCommand
and Rectangle
nodes.
Note that the Alt+Enter menu doesn't offer to "Add a Property Macro".
I am using MPS 2018.1.5.