-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
feat(semantic): parse jsdoc comments #205
Conversation
Benchmark ResultsLinux
Windows
|
I think this is in the right direction, shall we remove the I also realized by going through the jsdoc doc, there are three components:
So the overall architecture may be the following:
The I think I got an idea on how to do 1. You can keep on working on 2 and 3 as current development setup is already in the right direction. What do you think? |
I started working on comment attachment here: 3b7469a It seems I'll have to adjust some APIs on main, mainly to bring in trivias and source text into the semantic builder on initialization. |
b723bbc
to
7b0c39b
Compare
Updated with a commit: We can now retrieve jsdoc on the following code: /**
* @deprecated
**/
function foo() {
} I'll keep on working with the builder by adding tests. @shannonrothe You can focus on the parser without worrying about comment attachments now. |
95d528f
to
55b4d98
Compare
@shannonrothe Are you free for a round of review? Everything except the parser is ready to be merged. We can work on the parser in another around. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @Boshen, just some minor questions 🚀
@Boshen I took a very naive first pass and it's not completely functional. I'd love to see your ideas around using
OnceCell
and how we can properly attribute a given comment span to a node span.I attempted the lazy
OnceCell
approach in this commit (9cefee4), butOnceCell
is notCopy
so it doesn't compile