The AST visitors should use a flag to indicate when a file has been modified and thus, needs to be saved, this would improve performance of many operations singnificantly