Skip to content
Discussion options

You must be logged in to vote

Can this be done out of the box by oxc-parser today, especially in Node.js, or is the intended approach to manually match comments to AST nodes by spans/ranges and then parse the JSDoc separately?

Hi, unfortunately we do not parse jsdoc comments yet.

The best solution to your problem at present it probably to use oxc-parser to parse the ast + get all comments, then use a jsdoc parsing library to parse the content within the comment.

Is there already a supported way to get structured JSDoc for TS properties/interfaces/type literals from oxc-parser?
no

If not, is manual comment attachment by span/range the recommended approach today?
yes
Are there plans to expose a unified structure wh…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EliteUser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants