§AST Rewriter accepts
requests to change AST
4Add (Insert/Set),
Remove, Replace
4The new code can be a
new AST Node or a String
§AST Rewrite gathers
change requests and then executes
4Analyzes the change
requests for validity
4Produces text edits
that can be applied to documents to affect the change
§The analysis can decide
not to do a change because it is too hard
4E.g. when macros are
involved