whitequark / ast

A library for working with Abstract Syntax Trees.
MIT License
195 stars 25 forks source link

`Node#clone` returns self (they're immutable, after all) #12

Closed alexdowad closed 9 years ago

alexdowad commented 9 years ago

Since Node#dup returns self, it makes sense for Node#clone to do the same. (In core Ruby, dup copies an object's "frozen" and "tainted" status, and clone doesn't.)

alexdowad commented 9 years ago

Thanks!