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

Add a jsdoc parser #829

Closed
wants to merge 0 commits into from
Closed

Add a jsdoc parser #829

wants to merge 0 commits into from

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jun 9, 2020

It seems more complex than I initially thought.

Especially, I'm not sure if it's ok to change argument number based on the tag.
For example, param is used like @param {type} name description, so it can be parsed as an item with 3 parameters. But I don't know well about jsdoc spec.

cc @dsherret @mattd3v

Closes #827.

@kdy1 kdy1 marked this pull request as draft June 9, 2020 09:18

/// JsDoc tag with comments.
#[ast_node]
pub struct JsDocTagItem {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about just JsDocTag to copy what's done in the TS compiler (and it's shorter 🙂)?

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I should scroll down to see the enum. Sorry! That is awesome you've implemented all those!!

@kdy1 kdy1 closed this Jul 29, 2020
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

JSDoc Parser
2 participants