Skip to content

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

Description

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; }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: 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