Esprima supports tracking the syntax node location, so that should be possible. I'll look into it.