It's also worth noting that when you take code from somewhere else, please be sure to mention it in a comment somewhere. There are licensing considerations here, like we need to include the escodegen license in ESLint if we use any of that code.

Given that, I'd much rather use a naive implementation right now even if it isn't the fastest to remove the licensing issue. If we find that there is a performance issue here, we can revisit, but at the moment it's not a big concern.