Only generate AST nodes for dirty nodes