Skip to content

Extract Method appears in method delcaration #4165

Closed

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).

Activity

  1. added
    in editorRelates to code editing or language features
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    on Sep 21, 2022
  2. added this to the v3.50.0 milestone on Sep 21, 2022
  3. modified the milestones: v3.50.0, v3.52.0 on Oct 3, 2022
  4. DanTup commented on Oct 5, 2022

    @DanTup
    MemberAuthor
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

    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