You can clone with
HTTPS or Subversion.
If esprima has been used to generate a tree without any of range, tokens or comment options, I think escodegen can't output the comments. I think escodegen should just throw (or at least console.warn) in these cases to indicate that comments can't be properly outputed.
Thanks. You're right.
I'll add guard to escodegen.generate method.
I've submitted a PR which I think would provide a mechanism that would allow all validly trackable comments to be encoded into the AST in a way that escodegen can then output: #133