On Feb 9, 2013, at 9:19 PM, Sean P. DeNigris <[email protected]> wrote:

> rewriter := RBParseTreeRewriter new 
>               replace: 'attributes := OrderedCollection new.' 
>               with: 'attributes := Set new'.
>       tree := ConfigurationTemplate parseTreeFor: #customProjectAttributes.
>       rewriter executeTree: tree.
> returns true, but:
>       rewriter := RBParseTreeRewriter new 
>               replace: 'attributes := OrderedCollection new.' 
>               with: 'attributes := Set new. self halt'.
>       tree := ConfigurationTemplate parseTreeFor: #customProjectAttributes.
>       rewriter executeTree: tree.
> returns false.
> 
> Why does adding a statement cause this rewrite to fail and how should I bet
> doing it?

I'm puzzle too.
I started to write a chapter on the rewrtie engine to force me to look at it 
but I got distracted.

> 
> Thanks,
> Sean
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Adding-a-statement-when-rewriting-tp4668879.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 


Reply via email to