[Pharo-users] Re: Can the rewrite tool replace a single statement with multiple statements?

2024-06-03 Thread Tim Mackinnon
Hey Gabriel - thanks for chipping in - you've made me realise that its perhaps easier to give a simpler example (for the multiple replacement)., and while trying to explain in simpler terms I managed to solve the problem myself - but it does demonstrate the docs around this need a bit more work

[Pharo-users] Re: Can the rewrite tool replace a single statement with multiple statements?

2024-06-03 Thread Gabriel Cotelli
I've used the rewrite tool extensively but never tried to create more than one expression from the original one. I think that this probably won't work because in your example the code is just statements, but the matching expression can be in code like this: self doSomething: ( moveSubmenu

[Pharo-users] Can the rewrite tool replace a single statement with multiple statements?

2024-06-03 Thread Tim Mackinnon
I've never really learned the rewrite tool but while waiting for changes to propagate through P12, I thought maybe I could use it to safely patch changes until there are official updates (and it was a good chance to get more familiar with it). I thought there was more documentation available