Renaming identifier nodes

How do I rename every instance of an identifier node with name foo to have a new name, bar?

Please sign in to leave a comment.