Hi Sean, I didn't tried too much but you may first have to match the node in the parse tree. Something like this: | node | node := (RBParseTreeRewriter treeMatching: '`@expr blessing: `#lit' in: (YourClass >> #baseline01:) parseTree). (node parent removeNode: node) newSource. Cheers, Hernán 2017-06-04 0:48 GMT-03:00 Sean P. DeNigris <sean@clipperadams.com>:
I'm trying to write a rewrite rule, but can't quite get it.
I first want to remove `spec blessing: #baseline.`
I tried the following with no effect:
RBParseTreeRewriter new replace: '`@expr blessing: `#lit' with: ''; executeTree: methodTree; tree.
NB: If I try to edit the expression instead of remove, by passing something like '`@expr assert: `#lit' for #with:, it works
What am I missing here?
Thanks!
----- Cheers, Sean -- View this message in context: http://forum.world.st/ Creating-a-BaselineOf-from-a-ConfigurationOf-baselineXyz-tp4949192.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.