Skip to content

Show all function exit points by clicking on return or the return type #4844

@lukehutch

Description

@lukehutch

Is your feature request related to a problem? Please describe.

Eclipse has a nice feature where clicking on either a return statement or the return type of a function, all the exit points of the function are highlighted (whether they are return statements, throw statements, etc.).

Dart doesn't have checked exceptions, so doing this in Dart won't give the user a complete view of all the ways a function can exit (well, to be fair, Java also has unchecked exceptions, so it's not complete for Java either) -- but even being able to easily spot most of the return points in Dart would be really helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions