ASTs typically discard comments, and that's usually what you want.
The only time (AFAICS) that preserving comments is useful is for writing a code formatter.
Could you write a formatter in terms of a list of lexemes? A CST is a non-trivial bit of code for one use case.
Related Posts
Over a sufficiently long time horizon, all code you write is legacy code.
It's really satisfying to use a profiler for the first time on a project. I always find a big performance win with only a small code change.
It's never the code that I expected to be slow, however!
Copilot doesn't offer a way of disabling completion inside comments. People have discovered a comical workaround: swearing in the comment! https://github.com/orgs/community/discussions/8062#discussioncomment-11902740