Skip to content

@link and @see should lookup sibling methods/properties without a class prefix #43595

Closed
@sandersn

Description

@sandersn
class C {
    m() { }
    /** {@link m} */
    p() { }
    /** @see {m} */
    q() { }
}

Expected: goto-def/find-all-refs find the two references to m in jsdoc.

Actual: They don't.

Note that interfaces have the same problem:

interface C {
    m() 
    /** {@link m} */
    p()
    /** @see {n} */
    q()
    n: 1
}

Nested functions work fine:

function nestor() {
    function r2() { }
    /** {@link r2} */
    function ref() { }
    /** @see {r2} */
    function d3() { }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions