Skip to content

Multiple signatures are not correctly parsed #77

@Skateside

Description

@Skateside

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions