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?
Thanks,
Sean
Cheers,
Sean