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

Sort @param tag by the order of occurrence in function if possible #60

Closed
RunDevelopment opened this issue Feb 6, 2021 · 2 comments
Closed

Comments

@RunDevelopment
Copy link
Contributor

Try to detect if the current doc comment is the comment of a function declaration/definition and sort all @param tags by the order of the referred to parameters in the function.

Example

Before:

/**
 * @param c
 * @param b
 * @param a
 */
function name(a, b, c) {}

Before:

/**
 * @param a
 * @param b
 * @param c
 */
function name(a, b, c) {}
hosseinmd added a commit that referenced this issue Feb 7, 2021
@hosseinmd
Copy link
Owner

hosseinmd commented Feb 7, 2021

2524413

Implemented:

  • function
  • arrow function

Needed to implement:

  • Object/class methods

@hosseinmd
Copy link
Owner

I think this is enough for this feature. We can continue to improve this if requested. Thank you for your help.

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

2 participants