Add a new utility method for manipulating ASTs.