Different ways of amending an AST