Skip to content

Extract Method appears in method delcaration #4165

@DanTup

Description

@DanTup
int test() => 42;

Putting the caret before the parameter list shows Extract Method:

Screenshot 2022-09-21 at 11 10 44

This doesn't occur when not at the parameter list, and if invoked it generates bad code:

int testnewMethod

newMethod() => 42;;

(this doesn't seem related to the other parameter list issues discussed in #4157 as this occurs in 2.18 too).

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 bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions