Re: [Pharo-users] Creating a BaselineOf from a ConfigurationOf>>#baselineXyz:

2017-06-06 Thread Nicolai Hess
Hi Sean, 2017-06-04 5:48 GMT+02:00 Sean P. DeNigris : > 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' >

Re: [Pharo-users] Creating a BaselineOf from a ConfigurationOf>>#baselineXyz:

2017-06-04 Thread HernĂ¡n Morales Durand
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, He