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

Multiple signatures are not correctly parsed #77

Open
Skateside opened this issue Dec 17, 2016 · 1 comment
Open

Multiple signatures are not correctly parsed #77

Skateside opened this issue Dec 17, 2016 · 1 comment
Labels

Comments

@Skateside
Copy link

When a function has multiple signatures, the arguments and returns from all but the last signuature are ignored.

/**
 *  Object#one() -> Object
 *  Object#one(thing) -> String
 *  - thing (Number): A number
 *
 *  Here's the correct signature:
 *
 *      Object#one() -> Object
 *      Object#one(thing) -> String
 *      - thing (Number): A number
 *
 *  Here's how the signatures are understood:
 *
 *      Object#one
 *      Object#one(thing) -> String
 *      - thing (Number): A number
 *
 **/

You can actually see this happening on the hosted example of Prototype:
http://nodeca.github.io/ndoc/tests/prototype/#Element.addMethods

@puzrin puzrin added the bug label Dec 17, 2016
@puzrin
Copy link
Member

puzrin commented Dec 17, 2016

Seems to be a bug. Try to roll back to v3 or v4. Probably something was broken on rewrite.

Support of this package is very limited now. Don't expect fix soon, sorry. Also, i'd suggest to look at something jsdoc-based.

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

No branches or pull requests

2 participants