Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect comments from the actual source and attach them #1

Open
isidentical opened this issue Jul 23, 2021 · 0 comments
Open

Resurrect comments from the actual source and attach them #1

isidentical opened this issue Jul 23, 2021 · 0 comments

Comments

@isidentical
Copy link
Owner

It is possible to tokenize the actual source lines, and retrieve comments and attach them back if they are bind to the same node. We can probably retrieve this by checking whether all the line is covered by the singular node, and if so just add all comments to a stack and try to put them though one of the biggest problems with this approach is the collusion with existing comments since something that used to spread across lines might be reduced to a single-line now.

See teyit as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant