Hi,
I wanted to use RewriteTool to rewrite dynamic arrays
Source AST:
| base |
base := {#Department
->
{710 @ 255.
Color lightMagenta}}
matching AST:
| base |
base := {#Department
->
{``@first.
``@second}}
transformation:
| base |
base := {#Department -> (Array with: ``@first with: ``@second)}
However when I tried to execute it I was met with DNU OrderedCollection>>parent:
It seems that the @first/@second part are not matched properly.
Any way to fix this? Or am I doing it wrong?
Thanks,
Peter