Skip to content

Go-to-definition on return statements should jump to the containing function declaration #51222

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
function foo() {
    return /*END*/() => {
        /*START*/return 10;
    }
}

Go to definition on START should jump you up to the containing function.

It should be resilient to questionable placements of return and do nothing, as in the following cases.

/*a*/return;


function foo() {
    class Foo {
       static { /*b*/return; }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Experience EnhancementNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions